[llvm] [AArch64][GISel] Allow import of DAG FCVT/CVTF patterns using fixedpoint immediate (PR #215812)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 05:42:43 PDT 2026
================
@@ -6858,35 +6858,55 @@ multiclass FPToIntegerIntPats<Intrinsic round, string INST> {
defm : FPToIntegerIntPats<int_aarch64_neon_fcvtzs, "FCVTZS">;
defm : FPToIntegerIntPats<int_aarch64_neon_fcvtzu, "FCVTZU">;
-// This thing just allows us to change the type of the node produced. The imm
-// value we want is already in V from SelectCVTFixedPointVec.
-def fixedpoint_vec_xform : SDNodeXForm<timm, [{
+// These are split by fixed-point width so GlobalISel can route each
+// transformed operand to a renderer that checks the correct #fbits range.
+def fixedpoint_xform32 : SDNodeXForm<timm, [{
+ (void)N;
+ return V;
+}]>;
----------------
kmclaughlin-arm wrote:
This looks identical to `fixedpoint_xform32`, are both needed?
https://github.com/llvm/llvm-project/pull/215812
More information about the llvm-commits
mailing list