[llvm] [AMDGPU][SDAG] Support source modifiers as integer on select (PR #147325)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 09:30:51 PDT 2025


================
@@ -4830,6 +4830,65 @@ AMDGPUTargetLowering::foldFreeOpFromSelect(TargetLowering::DAGCombinerInfo &DCI,
   return SDValue();
 }
 
+static EVT IntToFloatVT(EVT VT) {
+  return VT = VT.isVector() ? MVT::getVectorVT(MVT::getFloatingPointVT(
+                                                   VT.getScalarSizeInBits()),
+                                               VT.getVectorNumElements())
+                            : MVT::getFloatingPointVT(VT.getFixedSizeInBits());
+}
+
+static SDValue BitwiseToSrcModifierOp(SDValue N,
----------------
shiltian wrote:

style related comment: function name needs to start with lower case (and preferably a verb).

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


More information about the llvm-commits mailing list