[llvm] 1fe1bf4 - [AArch64] Fix wrong comment on TTI(NFC) (#213743)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 04:11:54 PDT 2026


Author: Tomer Shafir
Date: 2026-08-06T14:11:49+03:00
New Revision: 1fe1bf4e4e1eeacb50c8a00d44f5737ec9b1c10e

URL: https://github.com/llvm/llvm-project/commit/1fe1bf4e4e1eeacb50c8a00d44f5737ec9b1c10e
DIFF: https://github.com/llvm/llvm-project/commit/1fe1bf4e4e1eeacb50c8a00d44f5737ec9b1c10e.diff

LOG: [AArch64] Fix wrong comment on TTI(NFC) (#213743)

The Apple runtime unroll preference in context only accepts single BB
loops by `if (Header == Latch)`

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index ead9853f1da47..b876fe0ec73f0 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -5940,7 +5940,7 @@ getAppleRuntimeUnrollPreferences(Loop *L, ScalarEvolution &SE,
     UP.AddAdditionalAccumulators = true;
   }
 
-  // Try to unroll small loops, of few-blocks with low budget, if they have
+  // Try to unroll small, single-block loops with low budget, if they have
   // load/store dependencies, to expose more parallel memory access streams,
   // or if they do little work inside a block (i.e. load -> X -> store pattern).
   BasicBlock *Header = L->getHeader();


        


More information about the llvm-commits mailing list