[llvm] r311840 - [X86] Use getOnesVector instead of using DAG.getConstant(-1).
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 26 20:26:04 PDT 2017
Author: ctopper
Date: Sat Aug 26 20:26:04 2017
New Revision: 311840
URL: http://llvm.org/viewvc/llvm-project?rev=311840&view=rev
Log:
[X86] Use getOnesVector instead of using DAG.getConstant(-1).
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=311840&r1=311839&r2=311840&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Aug 26 20:26:04 2017
@@ -14412,7 +14412,7 @@ SDValue X86TargetLowering::LowerINSERT_V
for (unsigned i = 0; i != NumElts; ++i)
BlendMask.push_back(i == IdxVal ? i + NumElts : i);
SDValue CstVector = IsZeroElt ? getZeroVector(VT, Subtarget, DAG, dl)
- : DAG.getConstant(-1, dl, VT);
+ : getOnesVector(VT, DAG, dl);
return DAG.getVectorShuffle(VT, dl, N0, CstVector, BlendMask);
}
More information about the llvm-commits
mailing list