[llvm] [AMDGPU] Implement hasBitTest to Optimize Bit Testing Operations (PR #112652)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 16 01:42:42 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 70b9440c888b93217172f4eb425ff8b59b00ea24 3df7755e17874a11a27433bfd020e0a1a3329f60 --extensions cpp,h -- llvm/lib/Target/AMDGPU/SIISelLowering.cpp llvm/lib/Target/AMDGPU/SIISelLowering.h
``````````

</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 f0660ea679..fd34b1e473 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -17030,7 +17030,7 @@ bool SITargetLowering::hasBitTest(SDValue X, SDValue Y) const {
     return false;
 
   EVT ScalarType = X.getValueType().getScalarType();
-  
+
   if (ScalarType != MVT::i32)
     return false;
 

``````````

</details>


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


More information about the llvm-commits mailing list