[PATCH] D38494: [ScalarEvolution] Handling for ICmp occuring in then evolution chain.
Jatin Bhateja via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 00:36:23 PDT 2017
jbhateja created this revision.
Herald added a subscriber: sanjoy.
If a compare instruction is same or inverse of the compare in the
branch of the loop latch, then return a constant evolution node.
This shall facilitate computations of loop exit counts in cases
where compare appears in the evolution chain of induction variables.
Will fix PR 34538
https://reviews.llvm.org/D38494
Files:
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Analysis/ScalarEvolution/pr34538.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38494.117480.patch
Type: text/x-patch
Size: 4120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171003/88296f0f/attachment.bin>
More information about the llvm-commits
mailing list