[llvm] [AArch64] Set the cache line size to 64 for the V2 and V3. (PR #148213)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 04:01:01 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-aarch64
Author: Sjoerd Meijer (sjoerdmeijer)
<details>
<summary>Changes</summary>
This sets the cache line size to 64 for the Neoverse V2 and V3. I've tested this with loop-interchange: it doesn't result in extra compile-times, but it does enable a lot more interchange.
I've also set this for V3, have not tested this, but looks like the sensible thing to do, but am happy to remove this.
---
Full diff: https://github.com/llvm/llvm-project/pull/148213.diff
1 Files Affected:
- (modified) llvm/lib/Target/AArch64/AArch64Subtarget.cpp (+1)
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
index 68ed10570a52f..4ac93526295aa 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
@@ -270,6 +270,7 @@ void AArch64Subtarget::initializeProperties(bool HasMinSize) {
break;
case NeoverseV2:
case NeoverseV3:
+ CacheLineSize = 64;
EpilogueVectorizationMinVF = 8;
MaxInterleaveFactor = 4;
ScatterOverhead = 13;
``````````
</details>
https://github.com/llvm/llvm-project/pull/148213
More information about the llvm-commits
mailing list