[llvm] [X86] Resolve FIXME: Add FPCW as a rounding control register (PR #82452)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 08:45:14 PST 2024
================
@@ -3443,6 +3443,8 @@ static bool isX87Reg(unsigned Reg) {
/// check if the instruction is X87 instruction
bool X86::isX87Instruction(MachineInstr &MI) {
+ if (MI.isCall())
+ return false;
----------------
AtariDreams wrote:
> If you'd like to insert wait after call instruction, code should be added in X86InsertWait.cp, instead of `X86::isX87Instruction`.
We add it before a call but not after.
We expect the function being called to have a wait before returning.
https://github.com/llvm/llvm-project/pull/82452
More information about the llvm-commits
mailing list