Skip to content

Commit f739aa4

Browse files
committed
[VectorCombine] replaceValue - add "VC: Replacing" debug message to help the log show replacement for old/new.
1 parent 5ed6229 commit f739aa4

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
@@ -128,6 +128,8 @@ class VectorCombine {
128128
bool shrinkType(Instruction &I);
129129

130130
void replaceValue(Value &Old, Value &New) {
131+
LLVM_DEBUG(dbgs() << "VC: Replacing: " << Old << '\n');
132+
LLVM_DEBUG(dbgs() << " With: " << New << '\n');
131133
Old.replaceAllUsesWith(&New);
132134
if (auto *NewI = dyn_cast<Instruction>(&New)) {
133135
New.takeName(&Old);

0 commit comments

Comments
 (0)