[llvm] b87a5fb - [VectorCombine] Add "VC: Visiting" debug message to help the log show the instruction folding order.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 07:03:42 PST 2024
Author: Simon Pilgrim
Date: 2024-12-20T14:57:58Z
New Revision: b87a5fb9fd8d50c911ac95f6854389d287542010
URL: https://github.com/llvm/llvm-project/commit/b87a5fb9fd8d50c911ac95f6854389d287542010
DIFF: https://github.com/llvm/llvm-project/commit/b87a5fb9fd8d50c911ac95f6854389d287542010.diff
LOG: [VectorCombine] Add "VC: Visiting" debug message to help the log show the instruction folding order.
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 deff00ff1ae528..37bf44122043cc 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3041,6 +3041,8 @@ bool VectorCombine::run() {
bool IsFixedVectorType = isa<FixedVectorType>(I.getType());
auto Opcode = I.getOpcode();
+ LLVM_DEBUG(dbgs() << "VC: Visiting: " << I << '\n');
+
// These folds should be beneficial regardless of when this pass is run
// in the optimization pipeline.
// The type checking is for run-time efficiency. We can avoid wasting time
More information about the llvm-commits
mailing list