[PATCH] D24090: [SLP] Sink debug after checking for matching types/opcode.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 10:34:29 PDT 2016
mcrosier created this revision.
mcrosier added reviewers: mssimpso, mkuper, eeckstein.
mcrosier added a subscriber: llvm-commits.
Herald added a subscriber: mzolotukhin.
Trivial refactoring. I was working through a few of the existing lit test cases with debug enabled and I found it to be misleading to print this message and then immediate return because the types/opcode don't match.
@@ -3855,8 +3855,6 @@
if (VL.size() < 2)
- DEBUG(dbgs() << "SLP: Vectorizing a list of length = " << VL.size() << ".\n");
// Check that all of the parts are scalar instructions of the same type.
Instruction *I0 = dyn_cast<Instruction>(VL);
@@ -3878,6 +3876,8 @@
+ DEBUG(dbgs() << "SLP: Vectorizing a list of length = " << VL.size() << ".\n");
bool Changed = false;
// Keep track of values that were deleted by vectorizing in the loop below.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 740 bytes
Desc: not available
More information about the llvm-commits