diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-08-05 00:17:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-08-05 00:17:48 +0000 |
commit | 638aa687d4ad7b2384144de93518aaebfef9e38d (patch) | |
tree | cc3da76539082c297b7f48e5faa436cf420c1d4f /lib | |
parent | 8cc3474f72388836fa4ca7d3622289fb9ee08b41 (diff) | |
download | external_llvm-638aa687d4ad7b2384144de93518aaebfef9e38d.zip external_llvm-638aa687d4ad7b2384144de93518aaebfef9e38d.tar.gz external_llvm-638aa687d4ad7b2384144de93518aaebfef9e38d.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 1a614c1..f774d04 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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(); |