From: Evan Cheng Date: Sat, 10 May 2008 00:58:41 +0000 (+0000) Subject: If movl top bits are undef, let it be selected to movlps, etc. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=25210da75746362badd623be54944439b2e64dbf;p=oota-llvm.git If movl top bits are undef, let it be selected to movlps, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50928 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index e9605bb174b..b30a13c67cc 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -6326,8 +6326,7 @@ static SDOperand PerformBuildVectorCombine(SDNode *N, SelectionDAG &DAG, 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.