Skip to content

Commit 847f4ef

Browse files
authored
[X86] Use getAllOnesConstant instead of getConstant(-1). NFC (#114299)
1 parent a39fb30 commit 847f4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49321,7 +49321,7 @@ static SDValue combineVectorShiftImm(SDNode *N, SelectionDAG &DAG,
4932149321
if (!LogicalShift && ISD::isBuildVectorAllOnes(N0.getNode()))
4932249322
// N0 is all ones or undef. We guarantee that the bits shifted into the
4932349323
// result are all ones, not undef.
49324-
return DAG.getConstant(-1, SDLoc(N), VT);
49324+
return DAG.getAllOnesConstant(SDLoc(N), VT);
4932549325

4932649326
auto MergeShifts = [&](SDValue X, uint64_t Amt0, uint64_t Amt1) {
4932749327
unsigned NewShiftVal = Amt0 + Amt1;

0 commit comments

Comments
 (0)