[llvm-commits] [llvm] r161305 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Chandler Carruth
chandlerc at google.com
Sat Aug 4 17:33:10 PDT 2012
Test case?
On Sat, Aug 4, 2012 at 5:17 PM, Craig Topper <craig.topper at gmail.com> wrote:
> Author: ctopper
> Date: Sat Aug 4 19:17:48 2012
> New Revision: 161305
>
> URL: http://llvm.org/viewvc/llvm-project?rev=161305&view=rev
> Log:
> 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.
>
> Modified:
> llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=161305&r1=161304&r2=161305&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Aug 4 19:17:48 2012
> @@ -11867,8 +11867,7 @@
> 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();
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120804/05f4b678/attachment.html>
More information about the llvm-commits
mailing list