summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopUnroll/tripcount-overflow.ll
Commit message (Collapse)AuthorAgeFilesLines
* Partial fix for bug 22589Sanjoy Das2015-02-181-11/+18
| | | | | | | | | | | Don't spend the entire iteration space in the scalar loop prologue if computing the trip count overflows. This change also gets rid of the backedge check in the prologue loop and the extra check for overflowing trip-count. Differential Revision: http://reviews.llvm.org/D7715 llvm-svn: 229731
* Fix a trip-count overflow issue in LoopUnroll.Michael Zolotukhin2014-11-201-0/+30
Currently LoopUnroll generates a prologue loop before the main loop body to execute first N%UnrollFactor iterations. Also, this loop is used if trip-count can overflow - it's determined by a runtime check. However, we've been mistakenly optimizing this loop to a linear code for UnrollFactor = 2, not taking into account that it also serves as a safe version of the loop if its trip-count overflows. llvm-svn: 222451
OpenPOWER on IntegriCloud