[llvm] 2905372 - [X86] visitADDLike - pull out repeated SDLoc. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 09:26:41 PDT 2024
Author: Simon Pilgrim
Date: 2024-07-15T17:20:58+01:00
New Revision: 290537238b45106e30bb082b9affde345d8a5482
URL: https://github.com/llvm/llvm-project/commit/290537238b45106e30bb082b9affde345d8a5482
DIFF: https://github.com/llvm/llvm-project/commit/290537238b45106e30bb082b9affde345d8a5482.diff
LOG: [X86] visitADDLike - pull out repeated SDLoc. NFC.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 92424722bb0d1..765f1e1f5f68c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2645,8 +2645,7 @@ SDValue DAGCombiner::visitADDLike(SDNode *N) {
return DAG.getNode(ISD::ADD, DL, VT, N1, N0);
if (areBitwiseNotOfEachother(N0, N1))
- return DAG.getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()),
- SDLoc(N), VT);
+ return DAG.getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()), DL, VT);
// fold vector ops
if (VT.isVector()) {
More information about the llvm-commits
mailing list