[llvm-branch-commits] [llvm] [AMDGPU][Legalizer] Widen i16 G_SEXT_INREG (PR #131308)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 14 04:20:15 PDT 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 ee03ddb50d99b34981cf2cde9049829ff89a9035 815595b1ca20b613b5b4b08cafedda93e397cf92 --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
index 6e611ebb4b..cfb5c3b300 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -2008,9 +2008,10 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
// S64 is only legal on SALU, and needs to be broken into 32-bit elements in
// RegBankSelect.
- auto &SextInReg = getActionDefinitionsBuilder(G_SEXT_INREG)
- .legalFor({{S32}, {S64}})
- .widenScalarIf(typeIs(0, S16), widenScalarOrEltToNextPow2(0, 32));
+ auto &SextInReg =
+ getActionDefinitionsBuilder(G_SEXT_INREG)
+ .legalFor({{S32}, {S64}})
+ .widenScalarIf(typeIs(0, S16), widenScalarOrEltToNextPow2(0, 32));
if (ST.hasVOP3PInsts()) {
SextInReg.lowerFor({{V2S16}})
``````````
</details>
https://github.com/llvm/llvm-project/pull/131308
More information about the llvm-branch-commits
mailing list