Skip to content

Commit 31eeaa9

Browse files
author
Leon Clark
committed
Add debug message.
1 parent 1ea556a commit 31eeaa9

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
@@ -4066,6 +4066,10 @@ bool VectorCombine::shrinkPhiOfShuffles(Instruction &I) {
40664066
if (NewCost > OldCost)
40674067
return false;
40684068

4069+
LLVM_DEBUG(dbgs() << "Found a phi of mergeable shuffles: " << I
4070+
<< "\n OldCost: " << OldCost << " vs NewCost: " << NewCost
4071+
<< "\n");
4072+
40694073
// Create new shuffles and narrowed phi.
40704074
auto Builder = IRBuilder(Shuf);
40714075
Builder.SetCurrentDebugLocation(Shuf->getDebugLoc());

0 commit comments

Comments
 (0)