[llvm] [GlobalISel] Use getCmpLibcallReturnType() for FCMP libcalls (NFC) (PR #226813)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 14:29:35 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);
----------------
arsenm wrote:
It would make more sense to invert this API to return an IR type, or at least have a separate LLT and EVT version
https://github.com/llvm/llvm-project/pull/226813
More information about the llvm-commits
mailing list