[llvm] [RISCV] Add DAG combine to turn (sub (shl X, 8-Y), (shr X, Y)) into orc.b (PR #111828)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 05:52:09 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 b773da0c5eed06f21f4caeea5eae47cacefb376c 3141c5dee88dc74b171940a713b2528220fcca6b --extensions cpp -- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index ee948ca71a..309e9e506a 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -13593,7 +13593,7 @@ static SDValue combineSubShiftToOrcB(SDNode *N, SelectionDAG &DAG,
if (N0->getOpcode() != ISD::SHL)
return SDValue();
-
+
auto *ShAmtCLeft = dyn_cast<ConstantSDNode>(N0.getOperand(1));
if (!ShAmtCLeft)
return SDValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/111828
More information about the llvm-commits
mailing list