[PATCH] D89541: [IRCE] Do not transform is loop has small number of iterations
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 18 22:06:36 PDT 2020
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:120
+static cl::opt<unsigned> MinEstimatedIterations("irce-min-estimated-iters",
+ cl::Hidden, cl::init(3));
+
----------------
skatkov wrote:
> mkazantsev wrote:
> > I think the name should hint that this is profile-based, e.g. "MinRuntimeLoopIterations" or so. We also might want to have another boolean flag to turn this check off, because some users of IRCE might not have a profile.
> The value 0 switches off this check.
Okay.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89541/new/
https://reviews.llvm.org/D89541
More information about the llvm-commits
mailing list