[llvm] [AMDGPU] Add partial unroll threshold function attribute (PR #223291)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 00:00:34 PDT 2026


================
@@ -117,6 +117,8 @@ void AMDGPUTTIImpl::getUnrollingPreferences(
   const Function &F = *L->getHeader()->getParent();
   UP.Threshold =
       F.getFnAttributeAsParsedInteger("amdgpu-unroll-threshold", 300);
+  UP.PartialThreshold = F.getFnAttributeAsParsedInteger(
+      "amdgpu-partial-unroll-threshold", UP.PartialThreshold);
----------------
nina-zhang-0 wrote:

Thanks. Updated to use an explicit default value of 150.

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


More information about the llvm-commits mailing list