[PATCH] D102234: [SimpleLoopBoundSplit] Split Bound of Loop which has conditional branch with IV
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 18:23:35 PST 2023
Allen added inline comments.
Herald added a subscriber: StephenFan.
Herald added a project: All.
================
Comment at: llvm/include/llvm/Transforms/Scalar/LoopBoundSplit.h:28
+/// C }
+/// if (iv != n) {
+/// while (iv < n) {
----------------
hi @jaykang10:
Excuse me, as *while (iv < n)* will guard the split loop body doesn't execute, so the insert condition *if (iv != n)* is good for performance?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102234/new/
https://reviews.llvm.org/D102234
More information about the llvm-commits
mailing list