[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
================
@@ -841,13 +841,21 @@ def X86fldf80 : PatFrag<(ops node:$ptr), (X86fld node:$ptr), [{
def X86fild16 : PatFrag<(ops node:$ptr), (X86fild node:$ptr), [{
return cast<MemIntrinsicSDNode>(N)->getMemoryVT() == MVT::i16;
-}]>;
+}]> {
+ let GISelPredicateCode = [{ return checkMemoryOpSize(MI, 2); }];
----------------
arsenm wrote:
You can do this in terms of LLT instead of the byte size, like the dag version
https://github.com/llvm/llvm-project/pull/137377
More information about the llvm-commits
mailing list