[PATCH] D102234: [SimpleLoopBoundSplit] Split Bound of Loop which has conditional branch with IV
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 2 03:33:35 PDT 2021
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp:355
+ Instruction *OrigBI = PostLoopPreHeader->getTerminator();
+ ICmpInst::Predicate Pred = ICmpInst::ICMP_NE;
+ Value *Cond =
----------------
Two points here:
1. Functional concern. Will NE work ok for step other than 1?
2. `lt` generally gives more info to the opt than `ne` (at least because `lt` implies `ne`). Any reason for `ne` here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102234/new/
https://reviews.llvm.org/D102234
More information about the llvm-commits
mailing list