mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[X86] VZeroUpperInserter::insertVZeroUpper - avoid DebugLoc creation by embedding in the BuildMI calls. NFCI.
Try to pass DebugLoc by const-ref to avoid costly TrackingMDNodeRef copies.
This commit is contained in:
parent
234c1d0991
commit
656838bb71
@ -182,8 +182,7 @@ static bool callHasRegMask(MachineInstr &MI) {
|
||||
/// Insert a vzeroupper instruction before I.
|
||||
void VZeroUpperInserter::insertVZeroUpper(MachineBasicBlock::iterator I,
|
||||
MachineBasicBlock &MBB) {
|
||||
DebugLoc dl = I->getDebugLoc();
|
||||
BuildMI(MBB, I, dl, TII->get(X86::VZEROUPPER));
|
||||
BuildMI(MBB, I, I->getDebugLoc(), TII->get(X86::VZEROUPPER));
|
||||
++NumVZU;
|
||||
EverMadeChange = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user