[llvm] [AArch64] Set MaxInterleaving to 4 for Neoverse V2 (PR #100385)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 01:24:28 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 60f3e67dae90f43698ae67167d0e024ff2ab0932 04e554cd1a1bcc33b497413588f4d586e234a365 --extensions cpp,h -- llvm/include/llvm/Analysis/TargetTransformInfo.h llvm/include/llvm/Analysis/TargetTransformInfoImpl.h llvm/include/llvm/CodeGen/BasicTTIImpl.h llvm/lib/Analysis/TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64Subtarget.cpp llvm/lib/Target/AArch64/AArch64Subtarget.h llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index 05c6cc9176..9d3ef01d2c 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -226,7 +226,9 @@ public:
hasFuseAdrpAdd() || hasFuseLiterals();
}
- unsigned getEpilogueVectorizationMinVF() const { return EpilogueVectorizationMinVF; }
+ unsigned getEpilogueVectorizationMinVF() const {
+ return EpilogueVectorizationMinVF;
+ }
unsigned getMaxInterleaveFactor() const { return MaxInterleaveFactor; }
unsigned getVectorInsertExtractBaseCost() const;
unsigned getCacheLineSize() const override { return CacheLineSize; }
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 56bd081f01..bdc326057d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4644,10 +4644,11 @@ bool LoopVectorizationCostModel::isEpilogueVectorizationProfitable(
if (TTI.getMaxInterleaveFactor(VF) <= 1)
return false;
- unsigned MinVFTreshold = EpilogueVectorizationMinVF.getNumOccurrences() > 0 ?
- EpilogueVectorizationMinVF : TTI.getEpilogueVectorizationMinVF();
+ unsigned MinVFTreshold = EpilogueVectorizationMinVF.getNumOccurrences() > 0
+ ? EpilogueVectorizationMinVF
+ : TTI.getEpilogueVectorizationMinVF();
- if ((Multiplier * VF.getKnownMinValue()) >= MinVFTreshold)
+ if ((Multiplier * VF.getKnownMinValue()) >= MinVFTreshold)
return true;
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100385
More information about the llvm-commits
mailing list