OSDN Git Service

[LoopReroll] Relax some assumptions a little.
authorJames Molloy <james.molloy@arm.com>
Mon, 16 Feb 2015 17:02:00 +0000 (17:02 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 16 Feb 2015 17:02:00 +0000 (17:02 +0000)
commit2a7fbb1927153390dd2f04958f79c2ecca11b87e
tree9f01613c8235da5072065ef2b3cede256df40a06
parent4b739069e477d04f7b7fc7d263a3de38c977b732
[LoopReroll] Relax some assumptions a little.

We won't find a root with index zero in any loop that we are able to reroll.
However, we may find one in a non-rerollable loop, so bail gracefully instead
of failing hard.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229406 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopRerollPass.cpp
test/Transforms/LoopReroll/basic.ll