[llvm] 77cfa38 - [DirectX][TTI] Sort switch statements. NFC (#134379)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 06:26:49 PDT 2025


Author: Justin Bogner
Date: 2025-04-04T22:26:46+09:00
New Revision: 77cfa38dcbe100ac26b98309bbf7cf346a75c2e5

URL: https://github.com/llvm/llvm-project/commit/77cfa38dcbe100ac26b98309bbf7cf346a75c2e5
DIFF: https://github.com/llvm/llvm-project/commit/77cfa38dcbe100ac26b98309bbf7cf346a75c2e5.diff

LOG: [DirectX][TTI] Sort switch statements. NFC (#134379)

Added: 
    

Modified: 
    llvm/lib/Target/DirectX/DirectXTargetTransformInfo.cpp

Removed: 
    


################################################################################
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;


        


More information about the llvm-commits mailing list