[llvm] [AMDGPU][TTI] Threshold bonus to loops whose unrolling makes nested loops unrollable (PR #114579)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 10:30:11 PDT 2024


================
@@ -148,8 +155,67 @@ void AMDGPUTTIImpl::getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
       }
     }
   }
-
   unsigned MaxBoost = std::max(ThresholdPrivate, ThresholdLocal);
+
+  if (llvm::PHINode *IV = L->getInductionVariable(SE)) {
----------------
arsenm wrote:

Don't need llvm::

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


More information about the llvm-commits mailing list