[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
================
@@ -355,6 +357,15 @@ bool X86InstructionSelector::selectCopy(MachineInstr &I,
return true;
}
+bool X86InstructionSelector::checkMemoryOpSize(const MachineInstr &MI,
+ unsigned NumBytes) const {
+ if (!MI.mayLoadOrStore())
+ return false;
+ assert(MI.hasOneMemOperand() &&
+ "Expected load/store to have only one mem op!");
----------------
arsenm wrote:
In the use context I would expect MI.mayLoadOrStore to be implied
https://github.com/llvm/llvm-project/pull/137377
More information about the llvm-commits
mailing list