[llvm] [AArch64] Enable unrolling for small multi-exit loops (PR #131998)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 06:53:45 PDT 2025


================
@@ -4703,22 +4769,24 @@ void AArch64TTIImpl::getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
     break;
   }
 
+  if (!L->getExitBlock() && shouldUnrollMultiExitLoop(L, SE, *this)) {
----------------
david-arm wrote:

Yep, I've tried to add something.

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


More information about the llvm-commits mailing list