[llvm] AMDGPU: Make v2f64 -> v2f16 conversion Legal only when unsafe fast math is set (PR #134738)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 13 02:15:47 PDT 2025
================
@@ -6893,6 +6893,19 @@ SDValue SITargetLowering::lowerFP_ROUND(SDValue Op, SelectionDAG &DAG) const {
return Op;
EVT DstVT = Op.getValueType();
+
+ if (DstVT == MVT::v2f16) {
----------------
arsenm wrote:
Same comments as the globalisel path. The vectoriness shouldn't matter, we don't need to directly consume the operation
https://github.com/llvm/llvm-project/pull/134738
More information about the llvm-commits
mailing list