diff options
author | Eric Christopher <echristo@apple.com> | 2011-05-10 23:57:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-05-10 23:57:45 +0000 |
commit | b38fe4b52de05a35c0693f4fd117f908a2abadb7 (patch) | |
tree | 8ff2fae4851775a050b5c399183904fb93b3e1cc /lib/Target/X86/X86InstrCompiler.td | |
parent | 88a5fb8f8fac1f6b4b5a3895d38e867f55ae041a (diff) | |
download | external_llvm-b38fe4b52de05a35c0693f4fd117f908a2abadb7.zip external_llvm-b38fe4b52de05a35c0693f4fd117f908a2abadb7.tar.gz external_llvm-b38fe4b52de05a35c0693f4fd117f908a2abadb7.tar.bz2 |
Optimize atomic lock or that doesn't use the result value.
Next up: xor and and.
Part of rdar://8470697
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrCompiler.td')
-rw-r--r-- | lib/Target/X86/X86InstrCompiler.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrCompiler.td b/lib/Target/X86/X86InstrCompiler.td index 662fddf..31b33ab 100644 --- a/lib/Target/X86/X86InstrCompiler.td +++ b/lib/Target/X86/X86InstrCompiler.td @@ -580,7 +580,7 @@ def #NAME#8mi : Ii8<{ImmOpc{7}, ImmOpc{6}, ImmOpc{5}, ImmOpc{4}, ImmOpc{3}, ImmOpc{2}, ImmOpc{1}, 0 }, ImmMod, (outs), (ins i8mem :$dst, i8imm :$src2), !strconcat("lock\n\t", mnemonic, "{b}\t", - "{$src2, $dst|$dst, $src2}"), + "{$src2, $dst|$dst, $src2}"), []>, LOCK; def #NAME#16mi : Ii16<{ImmOpc{7}, ImmOpc{6}, ImmOpc{5}, ImmOpc{4}, @@ -629,6 +629,7 @@ def #NAME#64mi8 : RIi8<{ImmOpc8{7}, ImmOpc8{6}, ImmOpc8{5}, ImmOpc8{4}, defm LOCK_ADD : LOCK_ArithBinOp<0x00, 0x80, 0x83, MRM0m, "add">; defm LOCK_SUB : LOCK_ArithBinOp<0x28, 0x80, 0x83, MRM5m, "sub">; +defm LOCK_OR : LOCK_ArithBinOp<0x08, 0x80, 0x83, MRM1m, "or">; // Optimized codegen when the non-memory output is not used. let Defs = [EFLAGS], mayLoad = 1, mayStore = 1, isCodeGenOnly = 1 in { |