[llvm] dbb0605 - [SelectionDAG] Add NewSDValueDbgMsg to getAtomic.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 23:02:33 PDT 2025
Author: Craig Topper
Date: 2025-04-23T22:56:52-07:00
New Revision: dbb0605f87d8b10171fba6291dd184f5fbf17683
URL: https://github.com/llvm/llvm-project/commit/dbb0605f87d8b10171fba6291dd184f5fbf17683
DIFF: https://github.com/llvm/llvm-project/commit/dbb0605f87d8b10171fba6291dd184f5fbf17683.diff
LOG: [SelectionDAG] Add NewSDValueDbgMsg to getAtomic.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 0a2687a16a80c..cf88c1f4ae937 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -9024,7 +9024,9 @@ SDValue SelectionDAG::getAtomic(unsigned Opcode, const SDLoc &dl, EVT MemVT,
CSEMap.InsertNode(N, IP);
InsertNode(N);
- return SDValue(N, 0);
+ SDValue V(N, 0);
+ NewSDValueDbgMsg(V, "Creating new node: ", this);
+ return V;
}
SDValue SelectionDAG::getAtomicCmpSwap(unsigned Opcode, const SDLoc &dl,
More information about the llvm-commits
mailing list