forked from OSchip/llvm-project
Add a comment about why ScalarEvolution doesn't recognize non-loop PHIs
even when they're obvious. llvm-svn: 75632
This commit is contained in:
parent
1ab40bef8d
commit
92b4c7f355
|
@ -2402,6 +2402,10 @@ const SCEV *ScalarEvolution::createNodeForPHI(PHINode *PN) {
|
|||
return SymbolicName;
|
||||
}
|
||||
|
||||
// It's tempting to recognize PHIs with a unique incoming value, however
|
||||
// this leads passes like indvars to break LCSSA form. Fortunately, such
|
||||
// PHIs are rare, as instcombine zaps them.
|
||||
|
||||
// If it's not a loop phi, we can't handle it yet.
|
||||
return getUnknown(PN);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue