[llvm] Simple check to ignore Inline asm fwait insertion (PR #101686)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 03:36:32 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())
----------------
Temperature-block wrote:
Oops my bad I accidentally force pushed incomplete changes, will update today sorry for any confusions.
https://github.com/llvm/llvm-project/pull/101686
More information about the llvm-commits
mailing list