[llvm] [GlobalISel] Use getCmpLibcallReturnType() for FCMP libcalls (NFC) (PR #226813)

Kiroo via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 20:04:49 PDT 2026


================
@@ -1190,19 +1190,20 @@ LegalizerHelper::createFCMPLibcall(MachineInstr &MI,
   const Register DstReg = Cmp->getReg(0);
   LLT DstTy = MRI.getType(DstReg);
   const auto Cond = Cmp->getCond();
+  Type *RetTy = EVT(TLI.getCmpLibcallReturnType()).getTypeForEVT(Ctx);
----------------
zlfn wrote:

I'll give the refactoring a try once this PR is merged.

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


More information about the llvm-commits mailing list