[llvm] [AArch64] Improve urem by constant costs (PR #122236)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 01:04:40 PST 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 f22441c14d844d2baedaaca02fe5382d300d7e46 13f83b0463a977955a559e3d1ddde34ffbba9d0a --extensions cpp -- llvm/lib/Analysis/TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index 2b51d2de06..c9ed846a9d 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -3564,7 +3564,6 @@ InstructionCost AArch64TTIImpl::getArithmeticInstrCost(
Op1Info.getNoProps(), Op2Info.getNoProps());
return MulCost * 2 + AddCost * 2 + ShrCost * 2 + 1;
}
-
}
// div i128's are lowered as libcalls. Pass nullptr as (u)divti3 calls are
``````````
</details>
https://github.com/llvm/llvm-project/pull/122236
More information about the llvm-commits
mailing list