[LoopUnroll] Only peel if a predicate becomes known in the loop body.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 18 Apr 2018 12:29:24 +0000 (12:29 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 18 Apr 2018 12:29:24 +0000 (12:29 +0000)
commitac2775889571951961dfd7f0e6ccbde4f869116d
tree6a86abb0f8d1a8063cd50a2573a226876aa4271a
parent3fb39c79ed7f9f50e3d853ac64c7bb982fcd9d68
[LoopUnroll] Only peel if a predicate becomes known in the loop body.

If a predicate does not become known after peeling, peeling is unlikely
to be beneficial.

Reviewers: mcrosier, efriedma, mkazantsev, junbuml

Reviewed By: mkazantsev

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

llvm-svn: 330250
llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
llvm/test/Transforms/LoopUnroll/peel-loop-conditions.ll