[llvm] f739aa4 - [VectorCombine] replaceValue - add "VC: Replacing" debug message to help the log show replacement for old/new.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 09:23:38 PST 2025
Author: Simon Pilgrim
Date: 2025-01-02T17:23:13Z
New Revision: f739aa4004165dc64d3a1f418d5ad3c84886f01a
URL: https://github.com/llvm/llvm-project/commit/f739aa4004165dc64d3a1f418d5ad3c84886f01a
DIFF: https://github.com/llvm/llvm-project/commit/f739aa4004165dc64d3a1f418d5ad3c84886f01a.diff
LOG: [VectorCombine] replaceValue - add "VC: Replacing" debug message to help the log show replacement for old/new.
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 dd109637552c4c..8509a31766e358 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -128,6 +128,8 @@ class VectorCombine {
bool shrinkType(Instruction &I);
void replaceValue(Value &Old, Value &New) {
+ LLVM_DEBUG(dbgs() << "VC: Replacing: " << Old << '\n');
+ LLVM_DEBUG(dbgs() << " With: " << New << '\n');
Old.replaceAllUsesWith(&New);
if (auto *NewI = dyn_cast<Instruction>(&New)) {
New.takeName(&Old);
More information about the llvm-commits
mailing list