[PATCH] D38494: [ScalarEvolution] Handling for ICmp occuring in the evolution chain.
Sanjoy Das via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 10:11:57 PDT 2017
sanjoy requested changes to this revision.
sanjoy added inline comments.
This revision now requires changes to proceed.
================
Comment at: lib/Analysis/ScalarEvolution.cpp:4995
+ // If 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
----------------
I don't think this is correct in the last iteration of the loop when the latch will not be taken.
https://reviews.llvm.org/D38494
More information about the llvm-commits
mailing list