[llvm] 82b5bda - [VectorCombine] Add "VC: Erasing" debug message to help the log show when dead WorkList instructions are erased.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 09:59:27 PST 2024
Author: Simon Pilgrim
Date: 2024-12-20T17:59:14Z
New Revision: 82b5bda42c00179fcf101e3ab2c591bda94ada9a
URL: https://github.com/llvm/llvm-project/commit/82b5bda42c00179fcf101e3ab2c591bda94ada9a
DIFF: https://github.com/llvm/llvm-project/commit/82b5bda42c00179fcf101e3ab2c591bda94ada9a.diff
LOG: [VectorCombine] Add "VC: Erasing" debug message to help the log show when dead WorkList instructions are erased.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index 785deb918bf8a1..1e39f9d7be1dc5 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -138,6 +138,7 @@ class VectorCombine {
}
void eraseInstruction(Instruction &I) {
+ LLVM_DEBUG(dbgs() << "VC: Erasing: " << I << '\n');
for (Value *Op : I.operands())
Worklist.pushValue(Op);
Worklist.remove(&I);
More information about the llvm-commits
mailing list