Include the maximum trip count expression in ScalarEvolution's print output.

llvm-svn: 74035
This commit is contained in:
Dan Gohman 2009-06-24 00:33:16 +00:00
parent 58b19d5310
commit 6994293b17
1 changed files with 9 additions and 0 deletions

View File

@ -4339,6 +4339,15 @@ static void PrintLoopInfo(raw_ostream &OS, ScalarEvolution *SE,
OS << "Unpredictable backedge-taken count. ";
}
OS << "\n";
OS << "Loop " << L->getHeader()->getName() << ": ";
if (!isa<SCEVCouldNotCompute>(SE->getMaxBackedgeTakenCount(L))) {
OS << "max backedge-taken count is " << *SE->getMaxBackedgeTakenCount(L);
} else {
OS << "Unpredictable max backedge-taken count. ";
}
OS << "\n";
}