Passing the types/opcode check still doesn't guarantee we'll actually vectorize.
Therefore, just make it clear we're attempting to vectorize.
llvm-svn: 280263
if (VL.size() < 2)
return false;
+ DEBUG(dbgs() << "SLP: Trying to vectorize 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[0]);
if (!I0)
return false;
}
- 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.