1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +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:
Simon Pilgrim 2021-05-13 13:19:13 +01:00
parent 234c1d0991
commit 656838bb71

View File

@ -182,8 +182,7 @@ static bool callHasRegMask(MachineInstr &MI) {
/// Insert a vzeroupper instruction before I. /// Insert a vzeroupper instruction before I.
void VZeroUpperInserter::insertVZeroUpper(MachineBasicBlock::iterator I, void VZeroUpperInserter::insertVZeroUpper(MachineBasicBlock::iterator I,
MachineBasicBlock &MBB) { MachineBasicBlock &MBB) {
DebugLoc dl = I->getDebugLoc(); BuildMI(MBB, I, I->getDebugLoc(), TII->get(X86::VZEROUPPER));
BuildMI(MBB, I, dl, TII->get(X86::VZEROUPPER));
++NumVZU; ++NumVZU;
EverMadeChange = true; EverMadeChange = true;
} }