From: Simon Pilgrim Date: Wed, 3 Oct 2018 18:38:28 +0000 (+0000) Subject: [X86] Move Atomic binops to use WriteALURMW schedule class X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b80d27a916988f45fa851f23dbb0cdb5649916f7;p=platform%2Fupstream%2Fllvm.git [X86] Move Atomic binops to use WriteALURMW schedule class These were being tagged as instead of properly using the RMW sequence llvm-svn: 343705 --- diff --git a/llvm/lib/Target/X86/X86InstrCompiler.td b/llvm/lib/Target/X86/X86InstrCompiler.td index 3033029..ee3470a 100644 --- a/llvm/lib/Target/X86/X86InstrCompiler.td +++ b/llvm/lib/Target/X86/X86InstrCompiler.td @@ -619,7 +619,7 @@ let isCodeGenOnly = 1, Defs = [EFLAGS] in def OR32mrLocked : I<0x09, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$zero), "or{l}\t{$zero, $dst|$dst, $zero}", []>, Requires<[Not64BitMode]>, OpSize32, LOCK, - Sched<[WriteALULd, WriteRMW]>; + Sched<[WriteALURMW]>; let hasSideEffects = 1 in def Int_MemBarrier : I<0, Pseudo, (outs), (ins), @@ -633,7 +633,7 @@ def Int_MemBarrier : I<0, Pseudo, (outs), (ins), multiclass LOCK_ArithBinOp RegOpc, bits<8> ImmOpc, bits<8> ImmOpc8, Format ImmMod, SDNode Op, string mnemonic> { let Defs = [EFLAGS], mayLoad = 1, mayStore = 1, isCodeGenOnly = 1, - SchedRW = [WriteALULd, WriteRMW] in { + SchedRW = [WriteALURMW] in { def NAME#8mr : I<{RegOpc{7}, RegOpc{6}, RegOpc{5}, RegOpc{4}, RegOpc{3}, RegOpc{2}, RegOpc{1}, 0 }, @@ -732,7 +732,7 @@ defm LOCK_XOR : LOCK_ArithBinOp<0x30, 0x80, 0x83, MRM6m, X86lock_xor, "xor">; multiclass LOCK_ArithUnOp Opc8, bits<8> Opc, Format Form, string frag, string mnemonic> { let Defs = [EFLAGS], mayLoad = 1, mayStore = 1, isCodeGenOnly = 1, - SchedRW = [WriteALULd, WriteRMW] in { + SchedRW = [WriteALURMW] in { def NAME#8m : I(frag # "_8") addr:$dst))]>, @@ -870,7 +870,7 @@ defm LCMPXCHG : LCMPXCHG_BinOp<0xB0, 0xB1, MRMDestMem, "cmpxchg", X86cas>; multiclass ATOMIC_LOAD_BINOP opc8, bits<8> opc, string mnemonic, string frag> { let Constraints = "$val = $dst", Defs = [EFLAGS], isCodeGenOnly = 1, - SchedRW = [WriteALULd, WriteRMW] in { + SchedRW = [WriteALURMW] in { def NAME#8 : I