[llvm] [X86][GlobalISel] - Legalize And Select of G_FPTOSI/G_SITOFP in X87 mode (PR #137377)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 12:38:27 PDT 2025
================
@@ -512,9 +522,18 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
(typePairInSet(0, 1, {{s32, s64}})(Query) ||
(Is64Bit && typePairInSet(0, 1, {{s64, s64}})(Query))));
})
- .clampScalar(1, s32, HasSSE2 ? s64 : s32)
+ .customIf([=](const LegalityQuery &Query) -> bool {
+ if (!UseX87)
+ return false;
----------------
arsenm wrote:
Use the new format that pulls the predicate out of the legality query?
https://github.com/llvm/llvm-project/pull/137377
More information about the llvm-commits
mailing list