[PATCH] D97747: [LoopUnrollRuntime] Add option to unroll loops with at most two exit/exiting blocks.
Bardia Mahjour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 07:03:18 PST 2021
bmahjour added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp:57
+ "when epilog is generated"));
+static cl::opt<bool> UnrollRuntimeEnableCutoffPoint(
+ "unroll-runtime-enable-cutoff-point", cl::init(false), cl::Hidden,
----------------
I think we can avoid this extra option by initializing the Cutoff to 0. Any number larger than 0 would mean a valid cutoff. (ie 0 means no cutoff enabled, 1 means no multi-exit, 2 means at most 2 exits, etc). It would also render `UnrollRuntimeMultiExit` obsolete, which can be replaced in this patch or a subsequent one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97747/new/
https://reviews.llvm.org/D97747
More information about the llvm-commits
mailing list