[llvm] [RISCV][GISel] Legalize G_SADDO/G_SSUBO/G_UADDO/G_USUBO. (PR #67615)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 15:36:46 PDT 2023
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 3e87829a8a9ab6a5f62078c590eec09f5024f95f a9ddcf56777ea8336944c2f104ea343ccf5bfc1d -- llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index a6b76f504..fd4370e98 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -42,11 +42,9 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
.widenScalarToNextPow2(0)
.clampScalar(0, s32, XLenLLT);
- getActionDefinitionsBuilder(
- {G_UADDE, G_UADDO, G_USUBE, G_USUBO}).lower();
+ getActionDefinitionsBuilder({G_UADDE, G_UADDO, G_USUBE, G_USUBO}).lower();
- getActionDefinitionsBuilder({G_SADDO, G_SSUBO})
- .lower();
+ getActionDefinitionsBuilder({G_SADDO, G_SSUBO}).lower();
getActionDefinitionsBuilder({G_ASHR, G_LSHR, G_SHL})
.legalFor({{s32, s32}, {XLenLLT, XLenLLT}})
``````````
</details>
https://github.com/llvm/llvm-project/pull/67615
More information about the llvm-commits
mailing list