[llvm] Add flag to enable expensive trip counts for runtime unroll. (PR #171735)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 06:53:33 PST 2026


================
@@ -178,6 +178,11 @@ static cl::opt<unsigned> PragmaUnrollFullMaxIterations(
     "pragma-unroll-full-max-iterations", cl::init(1'000'000), cl::Hidden,
     cl::desc("Maximum allowed iterations to unroll under pragma unroll full."));
 
+static cl::opt<bool> UnrollRuntimeExpensiveTripCount(
----------------
arsenm wrote:

There are way too many loop controls, I don't know the full status of them. But something like that. I would expect there is already a control for this 

https://github.com/llvm/llvm-project/pull/171735


More information about the llvm-commits mailing list