[PATCH] D38494: [ScalarEvolution] Handling for ICmp occuring in the evolution chain.
Jun Ryung Ju via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 21:10:31 PDT 2017
junryoungju 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);
----------------
How about using getOne, or getZero instead of getConstant?
https://reviews.llvm.org/D38494
More information about the llvm-commits
mailing list