OSDN Git Service

[LoopUnroll] Simplify induction variables after peeling too.
authorFlorian Hahn <florian.hahn@arm.com>
Fri, 23 Mar 2018 10:38:12 +0000 (10:38 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Fri, 23 Mar 2018 10:38:12 +0000 (10:38 +0000)
commitbf6a9a9d8c3b58c4c6b0281266d67ae65edd7f20
tree82e14eb506349b10e0f9553815b9c7b923b98ed3
parent5277548f84a3683da9e410baec357d21586289b3
[LoopUnroll] Simplify induction variables after peeling too.

Loop peeling also has an impact on the induction variables, so we should
benefit from induction variable simplification after peeling too.

Reviewers: sanjoy, bogner, mzolotukhin, efriedma

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D43878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328301 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnroll.cpp
test/Transforms/LoopUnroll/peel-loop-conditions.ll