[llvm-commits] [llvm] r84652 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td

Dan Gohman gohman at apple.com
Tue Oct 20 11:14:49 PDT 2009


Author: djg
Date: Tue Oct 20 13:14:49 2009
New Revision: 84652

URL: http://llvm.org/viewvc/llvm-project?rev=84652&view=rev
Log:
Following r84485, add Defs = [EFLAGS] to the 32-bit lock instructions too.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.td

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=84652&r1=84651&r2=84652&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Oct 20 13:14:49 2009
@@ -3593,6 +3593,7 @@
 
 // Optimized codegen when the non-memory output is not used.
 // FIXME: Use normal add / sub instructions and add lock prefix dynamically.
+let Defs = [EFLAGS] in {
 def LOCK_ADD8mr  : I<0x00, MRMDestMem, (outs), (ins i8mem:$dst, GR8:$src2),
                     "lock\n\t"
                     "add{b}\t{$src2, $dst|$dst, $src2}", []>, LOCK;
@@ -3662,6 +3663,7 @@
 def LOCK_DEC32m : I<0xFF, MRM1m, (outs), (ins i32mem:$dst),
                     "lock\n\t"
                     "dec{l}\t$dst", []>, LOCK;
+}
 
 // Atomic exchange, and, or, xor
 let Constraints = "$val = $dst", Defs = [EFLAGS],





More information about the llvm-commits mailing list