Skip to content

Commit 2905372

Browse files
committed
[X86] visitADDLike - pull out repeated SDLoc. NFC.
1 parent 3560e1d commit 2905372

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,8 +2645,7 @@ SDValue DAGCombiner::visitADDLike(SDNode *N) {
26452645
return DAG.getNode(ISD::ADD, DL, VT, N1, N0);
26462646

26472647
if (areBitwiseNotOfEachother(N0, N1))
2648-
return DAG.getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()),
2649-
SDLoc(N), VT);
2648+
return DAG.getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()), DL, VT);
26502649

26512650
// fold vector ops
26522651
if (VT.isVector()) {

0 commit comments

Comments
 (0)