[PATCH] D139832: [IndVars] Support AND/OR in optimizeLoopExitWithUnknownExitCount

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 20:09:01 PST 2023


mkazantsev added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1460
+    Value *Curr = Worklist.pop_back_val();
+    // Go through AND/OR conditions. Collect leave ICMPs. We only care about
+    // those with one use, to avoid instruction duplication.
----------------
fhahn wrote:
> nit: leaf ICMPs?
Thanks for catch!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139832/new/

https://reviews.llvm.org/D139832



More information about the llvm-commits mailing list