[PATCH] D113335: [X86] Preserve FPSW when popping x87 stack

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 7 16:57:22 PST 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FloatingPoint.cpp:874
   } else {    // Insert an explicit pop
+    // If this instruction sets FPSW, which is read in following instruction,
+    // insert pop after that reader.
----------------
Is checking the next instruction sufficient? Can other instructions be scheduled before the FNSTSW?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113335/new/

https://reviews.llvm.org/D113335



More information about the llvm-commits mailing list