[llvm] [NFC][LoopFlatten] Lift loop versioning to function (PR #166156)
Nashe Mncube via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 10 06:18:31 PST 2025
================
@@ -102,6 +102,10 @@ static cl::opt<bool>
VersionLoops("loop-flatten-version-loops", cl::Hidden, cl::init(true),
cl::desc("Version loops if flattened loop could overflow"));
+static cl::opt<bool> VersionLoopsOverWiden(
+ "loop-flatten-version-over-widen", cl::Hidden, cl::init(false),
+ cl::desc("Version loops and generate runtime checks over widening the IV"));
+
----------------
nasherm wrote:
Yes you're right. Setting ```loop-flatten-widen-iv=false``` does achieve the same result. This makes the patch just a simple refactor. Thanks for pointing this out :smile:
https://github.com/llvm/llvm-project/pull/166156
More information about the llvm-commits
mailing list