Skip to content

Commit b87a5fb

Browse files
committed
[VectorCombine] Add "VC: Visiting" debug message to help the log show the instruction folding order.
1 parent 2d5dc5c commit b87a5fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3041,6 +3041,8 @@ bool VectorCombine::run() {
30413041
bool IsFixedVectorType = isa<FixedVectorType>(I.getType());
30423042
auto Opcode = I.getOpcode();
30433043

3044+
LLVM_DEBUG(dbgs() << "VC: Visiting: " << I << '\n');
3045+
30443046
// These folds should be beneficial regardless of when this pass is run
30453047
// in the optimization pipeline.
30463048
// The type checking is for run-time efficiency. We can avoid wasting time

0 commit comments

Comments
 (0)