[PATCH] D141361: [IndVars] Improve handling of multi-exit loops with known symbolic counts

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 02:48:56 PST 2023


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1409
+    // wrap". getLoopInvariantExitCondDuringFirstIterations knows how to deal
+    // with umin in a smart way, but umin(a, b) - 1 will likely won't simplify.
+    // So we manually construct umin(a - 1, b - 1).
----------------
will likely won't


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

https://reviews.llvm.org/D141361



More information about the llvm-commits mailing list