mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
Include the maximum trip count expression in ScalarEvolution's print output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d289bf4af
commit
aa551ae10e
@ -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…
x
Reference in New Issue
Block a user