[llvm] [ARM] Update costs for ARM insts (PR #142843)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 07:51:14 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
index 1a054dd22..919a1e873 100644
--- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
@@ -517,7 +517,7 @@ InstructionCost ARMTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,
// We can convert <= to <, which is generally quite cheap.
if (Inst && Opcode == Instruction::ICmp && Idx == 1 &&
- ((Ty->getIntegerBitWidth() <= 32 &&
+ ((Ty->getIntegerBitWidth() <= 32 &&
(!isLegalCmpImmed(Imm.getSExtValue(), ST))) ||
Imm.isAllOnes() || Imm.isOne())) {
ICmpInst::Predicate Pred = cast<ICmpInst>(Inst)->getPredicate();
``````````
</details>
https://github.com/llvm/llvm-project/pull/142843
More information about the llvm-commits
mailing list