[llvm] [AMDGPU] Lower i8/i16 (and (srl x, c), mask) to v_bfe_u32 (PR #182446)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 23:05:11 PST 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/SIISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index e2713f933..4db6eefc9 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -13760,10 +13760,9 @@ SDValue SITargetLowering::performAndCombine(SDNode *N,
SDValue Src = DAG.getZExtOrTrunc(LHS->getOperand(0), SL, MVT::i32);
DCI.AddToWorklist(Src.getNode());
- SDValue BFE =
- DAG.getNode(AMDGPUISD::BFE_U32, SL, MVT::i32, Src,
- DAG.getConstant(Shift, SL, MVT::i32),
- DAG.getConstant(Bits, SL, MVT::i32));
+ SDValue BFE = DAG.getNode(AMDGPUISD::BFE_U32, SL, MVT::i32, Src,
+ DAG.getConstant(Shift, SL, MVT::i32),
+ DAG.getConstant(Bits, SL, MVT::i32));
DCI.AddToWorklist(BFE.getNode());
SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SL, VT, BFE);
``````````
</details>
https://github.com/llvm/llvm-project/pull/182446
More information about the llvm-commits
mailing list