summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll
Commit message (Collapse)AuthorAgeFilesLines
* [SCEV] Don't infinitely recurse on unreachable codeSanjoy Das2016-08-051-0/+28
| | | | llvm-svn: 277848
* [SCEV] Don't create SCEV expressions that break LCSSASanjoy Das2015-10-311-0/+24
| | | | | | | | | | | | | Prevent `createNodeFromSelectLikePHI` from creating SCEV expressions that break LCSSA. A better fix for the same issue is to teach SCEVExpander to not break LCSSA by inserting PHI nodes at appropriate places. That's planned for the future. Fixes PR25360. llvm-svn: 251756
* [SCEV] Recognize simple br-phi patternsSanjoy Das2015-10-021-0/+104
Summary: Teach SCEV to match patterns like ``` br %cond, label %left, label %right left: br label %merge right: br label %merge merge: V = phi [ %x, %left ], [ %y, %right ] ``` as "select %cond, %x, %y". Before this SCEV would match PHI nodes exclusively to add recurrences. This addresses PR25005. Reviewers: joker.eph, joker-eph, atrick Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13378 llvm-svn: 249211
OpenPOWER on IntegriCloud