[llvm] [RISCV][GISel] Legalize G_SMULO/G_UMULO (PR #67635)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 11:43:53 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 26eb4285b56edd8c897642078d91f16ff0fd3472 56b7ccb9e41a12965e3b3bfdaffdf5dfe5e853f2 -- 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 103b12fde57b..5f4e8da3e628 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -154,9 +154,7 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
getActionDefinitionsBuilder({G_SMULH, G_UMULH}).lowerFor({XLenLLT});
}
- getActionDefinitionsBuilder({G_SMULO, G_UMULO})
- .minScalar(0, XLenLLT)
- .lower();
+ getActionDefinitionsBuilder({G_SMULO, G_UMULO}).minScalar(0, XLenLLT).lower();
if (ST.hasStdExtM()) {
getActionDefinitionsBuilder({G_UDIV, G_SDIV, G_UREM, G_SREM})
``````````
</details>
https://github.com/llvm/llvm-project/pull/67635
More information about the llvm-commits
mailing list