[llvm] [llvm][ARM][NFC] Renaming FeaturePrefLoopLogAlign (PR #109932)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 02:24:45 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 db054a197002c4d6b2c568d7c36d86f5fccade2d 02ac9ddc328d24ad4a2f3abc616f8e9f8b67e1f6 --extensions cpp,h -- llvm/lib/Target/ARM/ARMISelLowering.cpp llvm/lib/Target/ARM/ARMSubtarget.cpp llvm/lib/Target/ARM/ARMSubtarget.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index fc07a45517..acc261c952 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1635,8 +1635,7 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
// Prefer likely predicted branches to selects on out-of-order cores.
PredictableSelectIsExpensive = Subtarget->getSchedModel().isOutOfOrder();
- setPrefLoopAlignment(
- Align(1ULL << Subtarget->getPrefBranchLogAlignment()));
+ setPrefLoopAlignment(Align(1ULL << Subtarget->getPrefBranchLogAlignment()));
setPrefFunctionAlignment(
Align(1ULL << Subtarget->getPrefBranchLogAlignment()));
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index 6e0e7e9809..9dfa8536fa 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -476,9 +476,7 @@ public:
return isROPI() || !isTargetELF();
}
- unsigned getPrefBranchLogAlignment() const {
- return PrefBranchLogAlignment;
- }
+ unsigned getPrefBranchLogAlignment() const { return PrefBranchLogAlignment; }
unsigned
getMVEVectorCostFactor(TargetTransformInfo::TargetCostKind CostKind) const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/109932
More information about the llvm-commits
mailing list