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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 13 02:14:36 PST 2025


================
@@ -124,6 +130,8 @@ void AMDGPUTTIImpl::getUnrollingPreferences(
   // We want to run unroll even for the loops which have been vectorized.
   UP.UnrollVectorizedLoop = true;
 
+  UP.AllowExpensiveTripCount = UnrollRuntimeExpensiveTripCount;
----------------
arsenm wrote:

Right, you can move the flag you are adding here to there instead 

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


More information about the llvm-commits mailing list