[llvm-commits] [llvm] r50928 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Fri May 9 17:58:42 PDT 2008
Author: evancheng
Date: Fri May 9 19:58:41 2008
New Revision: 50928
URL: http://llvm.org/viewvc/llvm-project?rev=50928&view=rev
Log:
If movl top bits are undef, let it be selected to movlps, etc.
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=50928&r1=50927&r2=50928&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri May 9 19:58:41 2008
@@ -6326,8 +6326,7 @@
return SDOperand();
// This must be an insertion into a zero vector.
SDOperand HighElt = N->getOperand(1);
- if (HighElt.getOpcode() != ISD::UNDEF &&
- !isZeroNode(HighElt))
+ if (!isZeroNode(HighElt))
return SDOperand();
// Value must be a load.
More information about the llvm-commits
mailing list