[llvm] [AArch64][GlobalISel] Improve fixed-point int-to-fp selection (PR #224055)

Vimal Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 04:14:47 PDT 2026


================
@@ -816,6 +816,35 @@ bool AArch64RegisterBankInfo::prefersFPUse(const MachineInstr &MI,
   return onlyDefinesFP(MI, MRI, TRI, Depth);
 }
 
+static bool shouldUseFPRForCvtOperand(
+    const RegisterBankInfo &RBI, const MachineInstr &MI,
+    const MachineRegisterInfo &MRI, const AArch64RegisterInfo &TRI,
+    function_ref<bool(const MachineInstr &)> HasFPConstraints,
+    unsigned BankedOpIdx, unsigned OtherOpIdx, bool ForceFPRForBankedOp16,
+    bool ForceFPRForOtherOp16, bool AllowFPRCVT, bool CheckBankedOpUses) {
----------------
pvimal816a wrote:

Tried to simplify to an extent possible.

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


More information about the llvm-commits mailing list