[llvm] [AMDGPUInstCombineIntrinsic] Do not narrow 8,16-bit amdgcn_s_buffer_load instrinsics (PR #117997)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 04:14:00 PST 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 79eb406a67fe08458548289da72cda18248a9313 d3366c7e46432ed388ea403c6b8d46c2207d00c1 --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
index 4800fdb449..b8a907b598 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
@@ -1404,7 +1404,8 @@ static Value *simplifyAMDGCNMemoryIntrinsicDemanded(InstCombiner &IC,
       }
     }
 
-    unsigned NewLoadWidthInBits = SingleComponentSizeInBits * DemandedElts.popcount();
+    unsigned NewLoadWidthInBits =
+        SingleComponentSizeInBits * DemandedElts.popcount();
     if (II.getIntrinsicID() == Intrinsic::amdgcn_s_buffer_load &&
         NewLoadWidthInBits < 32) {
       // From the GCN gen3 manual, section 7.4 (Scalar Memory Operations /

``````````

</details>


https://github.com/llvm/llvm-project/pull/117997


More information about the llvm-commits mailing list