[llvm] [AMDGPU] Vectorize i8 Shuffles (PR #95840)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 09:18:10 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 26a8a857dcdc219d57e39b495ff58aef7d746fdc 7405d61607d6f2e63dbc5d21a3be60ac1515aa0d --extensions cpp,h -- llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
index e0267cd108..4dbb10764d 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
@@ -306,7 +306,8 @@ bool GCNTTIImpl::hasBranchDivergence(const Function *F) const {
   return !F || !ST->isSingleLaneExecution(*F);
 }
 
-unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) {  return BaseT::getNumberOfParts(Tp);
+unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) {
+  return BaseT::getNumberOfParts(Tp);
   // For certain 8 bit ops, we can pack a v4i8 into a single part
   // (e.g. v4i8 shufflevectors -> v_perm v4i8, v4i8). Thus, we
   // do not limit the numberOfParts for 8 bit vectors to the

``````````

</details>


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


More information about the llvm-commits mailing list