[llvm] [DirectX][TTI] Sort switch statements. NFC (PR #134379)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 06:27:17 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-directx

Author: Justin Bogner (bogner)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/134379.diff


1 Files Affected:

- (modified) llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp (+7-7) 


``````````diff
diff --git a/llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp b/llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp
index ba656dc737140..765e1977041b9 100644
--- a/llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp
+++ b/llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp
@@ -38,18 +38,18 @@ bool DirectXTTIImpl::isTargetIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
 bool DirectXTTIImpl::isTargetIntrinsicTriviallyScalarizable(
     Intrinsic::ID ID) const {
   switch (ID) {
+  case Intrinsic::dx_asdouble:
+  case Intrinsic::dx_firstbitlow:
+  case Intrinsic::dx_firstbitshigh:
+  case Intrinsic::dx_firstbituhigh:
   case Intrinsic::dx_frac:
   case Intrinsic::dx_rsqrt:
+  case Intrinsic::dx_splitdouble:
+  case Intrinsic::dx_wave_readlane:
   case Intrinsic::dx_wave_reduce_max:
-  case Intrinsic::dx_wave_reduce_umax:
   case Intrinsic::dx_wave_reduce_sum:
+  case Intrinsic::dx_wave_reduce_umax:
   case Intrinsic::dx_wave_reduce_usum:
-  case Intrinsic::dx_wave_readlane:
-  case Intrinsic::dx_asdouble:
-  case Intrinsic::dx_splitdouble:
-  case Intrinsic::dx_firstbituhigh:
-  case Intrinsic::dx_firstbitshigh:
-  case Intrinsic::dx_firstbitlow:
     return true;
   default:
     return false;

``````````

</details>


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


More information about the llvm-commits mailing list