forked from OSchip/llvm-project
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.
llvm-svn: 161305
This commit is contained in:
parent
e073177e06
commit
43ee9fae92
|
@ -11867,8 +11867,7 @@ X86TargetLowering::EmitPCMP(MachineInstr *MI, MachineBasicBlock *BB,
|
||||||
MIB.addOperand(Op);
|
MIB.addOperand(Op);
|
||||||
}
|
}
|
||||||
BuildMI(*BB, MI, dl,
|
BuildMI(*BB, MI, dl,
|
||||||
TII->get(Subtarget->hasAVX() ? X86::VMOVAPSrr : X86::MOVAPSrr),
|
TII->get(TargetOpcode::COPY), MI->getOperand(0).getReg())
|
||||||
MI->getOperand(0).getReg())
|
|
||||||
.addReg(X86::XMM0);
|
.addReg(X86::XMM0);
|
||||||
|
|
||||||
MI->eraseFromParent();
|
MI->eraseFromParent();
|
||||||
|
|
Loading…
Reference in New Issue