[llvm] [AArch64][GlobalISel] SIMD fpcvt codegen for rounding nodes (PR #165546)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 10:06:55 PDT 2025
================
@@ -6799,6 +6799,79 @@ defm : FPToIntegerPats<fp_to_uint, fp_to_uint_sat, fp_to_uint_sat_gi, ftrunc, "F
defm : FPToIntegerPats<fp_to_sint, fp_to_sint_sat, fp_to_sint_sat_gi, fround, "FCVTAS">;
defm : FPToIntegerPats<fp_to_uint, fp_to_uint_sat, fp_to_uint_sat_gi, fround, "FCVTAU">;
+// For global-isel we can use register classes to determine
+// which FCVT instruction to use.
+let Predicates = [HasFPRCVT] in {
+def : Pat<(i64 (any_lround f32:$Rn)),
----------------
CarolineConcatto wrote:
Should we not add pattern for the GlobalISel too. It seams to me that all the tests are always falling back to the selection dag.
https://github.com/llvm/llvm-project/pull/165546
More information about the llvm-commits
mailing list