forked from OSchip/llvm-project
Include the maximum trip count expression in ScalarEvolution's print output.
llvm-svn: 74035
This commit is contained in:
parent
58b19d5310
commit
6994293b17
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue