[llvm] [X86] Resolve FIXME: Add FPCW as a rounding control register (PR #82452)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 19:19:43 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;
----------------
KanRobert wrote:

Could you add comment to explain this, e.g. ".Call defs X87 register but should not be classified as X87 instruction."?

https://github.com/llvm/llvm-project/pull/82452


More information about the llvm-commits mailing list