[llvm] [TTI][AArch64] Add preferFixedIfEqualToScalable hook (PR #95818)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 11:08:18 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 35ddc17f36282f24324275e0691fb57e270f113d 9e3fbe463a29bfe698ca3d573b3183448f7a4cc2 -- llvm/include/llvm/Analysis/TargetTransformInfo.h llvm/include/llvm/Analysis/TargetTransformInfoImpl.h llvm/lib/Analysis/TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 9679c9ec6b..8b42837f3b 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -913,9 +913,7 @@ public:
return VF;
}
- bool preferFixedIfEqualToScalable() const {
- return false;
- }
+ bool preferFixedIfEqualToScalable() const { return false; }
bool preferInLoopReduction(unsigned Opcode, Type *Ty,
TTI::ReductionFlags Flags) const {
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
index 13e66f9ea1..7536b5920b 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
@@ -371,7 +371,9 @@ public:
return TailFoldingStyle::DataWithoutLaneMask;
}
- bool preferFixedIfEqualToScalable() const { return ST->useFixedIfEqualToScalable(); }
+ bool preferFixedIfEqualToScalable() const {
+ return ST->useFixedIfEqualToScalable();
+ }
bool preferPredicateOverEpilogue(TailFoldingInfo *TFI);
``````````
</details>
https://github.com/llvm/llvm-project/pull/95818
More information about the llvm-commits
mailing list