mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 10:21:54 +00:00
Make ScalarEvolution::print print getSCEVAtScope values for
expressions, when interesting. llvm-svn: 73776
This commit is contained in:
parent
12e12ed0d4
commit
c71421c97e
@ -4048,9 +4048,17 @@ void ScalarEvolution::print(raw_ostream &OS, const Module* ) const {
|
||||
SCEVHandle SV = SE.getSCEV(&*I);
|
||||
SV->print(OS);
|
||||
|
||||
if (const Loop *L = LI->getLoopFor((*I).getParent())) {
|
||||
const Loop *L = LI->getLoopFor((*I).getParent());
|
||||
|
||||
SCEVHandle AtUse = SE.getSCEVAtScope(SV, L);
|
||||
if (AtUse != SV) {
|
||||
OS << " --> ";
|
||||
AtUse->print(OS);
|
||||
}
|
||||
|
||||
if (L) {
|
||||
OS << "\t\t" "Exits: ";
|
||||
SCEVHandle ExitValue = SE.getSCEVAtScope(&*I, L->getParentLoop());
|
||||
SCEVHandle ExitValue = SE.getSCEVAtScope(SV, L->getParentLoop());
|
||||
if (!ExitValue->isLoopInvariant(L)) {
|
||||
OS << "<<Unknown>>";
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user