mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 03:33:42 +00:00
Use a COPY node instead of an explicit MOVA opcode in the custom insterter for pcmpestrm/pcmpistrm. Allows the register allocator to handle it better and prevent wasted identity moves.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8cc3474f72
commit
638aa687d4
@ -11867,8 +11867,7 @@ X86TargetLowering::EmitPCMP(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
MIB.addOperand(Op);
|
||||
}
|
||||
BuildMI(*BB, MI, dl,
|
||||
TII->get(Subtarget->hasAVX() ? X86::VMOVAPSrr : X86::MOVAPSrr),
|
||||
MI->getOperand(0).getReg())
|
||||
TII->get(TargetOpcode::COPY), MI->getOperand(0).getReg())
|
||||
.addReg(X86::XMM0);
|
||||
|
||||
MI->eraseFromParent();
|
||||
|
Loading…
x
Reference in New Issue
Block a user