Skip to content

Commit bf873aa

Browse files
committed
[VectorCombine] foldShuffleToIdentity - add debug message for match
Helps with debugging to show to that the fold found the match.
1 parent db2307d commit bf873aa

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
@@ -2376,6 +2376,8 @@ bool VectorCombine::foldShuffleToIdentity(Instruction &I) {
23762376
if (NumVisited <= 1)
23772377
return false;
23782378

2379+
LLVM_DEBUG(dbgs() << "Found a superfluous identity shuffle: " << I << "\n");
2380+
23792381
// If we got this far, we know the shuffles are superfluous and can be
23802382
// removed. Scan through again and generate the new tree of instructions.
23812383
Builder.SetInsertPoint(&I);

0 commit comments

Comments
 (0)