[llvm] Simple check to ignore Inline asm fwait insertion (PR #101686)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 06:35:41 PDT 2024


================
@@ -103,8 +103,9 @@ bool WaitInsert::runOnMachineFunction(MachineFunction &MF) {
 
   for (MachineBasicBlock &MBB : MF) {
     for (MachineBasicBlock::iterator MI = MBB.begin(); MI != MBB.end(); ++MI) {
-      // Jump non X87 instruction.
-      if (!X86::isX87Instruction(*MI))
+
+      // Jump non X87 instruction and Inline asm.
+      if (!X86::isX87Instruction(*MI) || MI->isInlineAsm())
----------------
phoebewang wrote:

Put the check in `isX87Instruction`?

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


More information about the llvm-commits mailing list