summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IRCE/bad-loop-structure.ll
Commit message (Collapse)AuthorAgeFilesLines
* [IRCE] Add a missing invariant checkSanjoy Das2017-02-071-0/+45
Currently IRCE relies on the loops it transforms to be (semantically) of the form: for (i = START; i < END; i++) ... or for (i = START; i > END; i--) ... However, we were not verifying the presence of the START < END entry check (i.e. check before the first iteration). We were only verifying that the backedge was guarded by (i + 1) < END. Usually this would work "fine" since (especially in Java) most loops do actually have the START < END check, but of course that is not guaranteed. llvm-svn: 294375
OpenPOWER on IntegriCloud