[PATCH] D28968: LoopUnswitch - Simplify based on known not to a be constant.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 21 11:42:13 PST 2017
efriedma added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopUnswitch.cpp:1397
+ LLVMContext &Ctx = Inst->getContext();
+ if (CI->getPredicate() == CmpInst::ICMP_EQ)
+ return ConstantInt::getFalse(Ctx);
----------------
efriedma wrote:
> Maybe use isTrueWhenEqual here, so you can drop the isEquality check?
Err, nevermind, that doesn't work, please ignore.
https://reviews.llvm.org/D28968
More information about the llvm-commits
mailing list