[PATCH] D38494: [ScalarEvolution] Handling for ICmp occuring in the evolution chain.
Jatin Bhateja via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 03:10:43 PDT 2017
jbhateja added inline comments.
================
Comment at: lib/Analysis/ScalarEvolution.cpp:6482
+ if (BI && BI->isConditional() && BI->getCondition() == IC) {
+ if (BI->getSuccessor(0) != L->getHeader())
+ return getConstant(Type::getInt1Ty(getContext()), 0, false);
----------------
junryoungju wrote:
> How about using getOne, or getZero instead of getConstant?
Interally it calls getConstant, I shall make this change before commit.
https://reviews.llvm.org/D38494
More information about the llvm-commits
mailing list