Skip to content

Commit 4aa02e8

Browse files
author
Leon Clark
committed
Add debug message.
1 parent 7f0481c commit 4aa02e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,6 +3763,10 @@ bool VectorCombine::shrinkPhiOfShuffles(Instruction &I) {
37633763
if (NewCost > OldCost)
37643764
return false;
37653765

3766+
LLVM_DEBUG(dbgs() << "Found a phi of mergeable shuffles: " << I
3767+
<< "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
3768+
<< "\n");
3769+
37663770
// Create new shuffles and narrowed phi.
37673771
auto Builder = IRBuilder(Shuf);
37683772
Builder.SetCurrentDebugLocation(Shuf->getDebugLoc());

0 commit comments

Comments
 (0)