HomePhabricator

[ScalarEvolution] Handling for ICmp occuring in the evolution chain.

Description

[ScalarEvolution] Handling for ICmp occuring in the evolution chain.

Summary:
If a compare instruction is same or inverse of the compare in the
branch of the loop latch, then return a constant evolution node.
Currently scope of evaluation is limited to SCEV computation for
PHI nodes.

This shall facilitate computations of loop exit counts in cases
where compare appears in the evolution chain of induction variables.

Will fix PR 34538
Reviewers: sanjoy, hfinkel, junryoungju

Reviewed By: junryoungju

Subscribers: javed.absar, llvm-commits

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

Details

Committed
jbhatejaOct 17 2017, 6:36 PM
Reviewer
junryoungju
Differential Revision
D38494: [SCEV] Handling for ICmp occuring in the evolution chain.
Parents
rL316053: [CMake] Build Fuchsia toolchain as -O3
Branches
Unknown
Tags
Unknown