Add debug prints.

llvm-svn: 179412
This commit is contained in:
Nadav Rotem 2013-04-12 21:11:14 +00:00
parent 0b202052b3
commit 4da0ab1d68
1 changed files with 5 additions and 1 deletions

View File

@ -91,6 +91,10 @@ struct SLPVectorizer : public BasicBlockPass {
it != e; ++it) {
if (it->second.size() < 2)
continue;
DEBUG(dbgs()<<"SLP: Analyzing a store chain of length " <<
it->second.size() << ".\n");
Changed |= R.vectorizeStores(it->second, -SLPCostThreshold);
}
return Changed;
@ -117,7 +121,7 @@ struct SLPVectorizer : public BasicBlockPass {
bool Changed = RollStoreChains(R);
if (Changed) {
DEBUG(dbgs()<<"Rolled chains in \""<<BB.getParent()->getName()<<"\"\n");
DEBUG(dbgs()<<"SLP: vectorized in \""<<BB.getParent()->getName()<<"\"\n");
DEBUG(verifyFunction(*BB.getParent()));
}