]> granicus.if.org Git - llvm/commit
Merging r229731:
authorHans Wennborg <hans@hanshq.net>
Wed, 18 Feb 2015 22:51:15 +0000 (22:51 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 18 Feb 2015 22:51:15 +0000 (22:51 +0000)
commit7f2c6994025266f6656a62abd7a5eddb8da77e5f
treee67e916c6416231bc7ef4354fd0a152228a535a0
parentc16361ad43e8f6ea78c28c3776fe0821edae6ca0
Merging r229731:
------------------------------------------------------------------------
r229731 | sanjoy | 2015-02-18 11:32:25 -0800 (Wed, 18 Feb 2015) | 10 lines

Partial fix for bug 22589

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

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@229757 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnrollRuntime.cpp
test/Transforms/LoopUnroll/runtime-loop.ll
test/Transforms/LoopUnroll/runtime-loop1.ll
test/Transforms/LoopUnroll/tripcount-overflow.ll