Set hasSideEffects on the 64-bit no-sse memory barrier.
authorEric Christopher <echristo@apple.com>
Thu, 5 Aug 2010 19:54:59 +0000 (19:54 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 5 Aug 2010 19:54:59 +0000 (19:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110369 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Instr64bit.td

index 4e2710b2ee568531b3b0531810286ceb175cfd26..408da43a794ca1bfd0bac226737bb9b1c2727bb0 100644 (file)
@@ -1620,7 +1620,7 @@ def MOV64FSrm : RI<0x8B, MRMSrcMem, (outs GR64:$dst), (ins i64mem:$src),
 //===----------------------------------------------------------------------===//
 
 // TODO: Get this to fold the constant into the instruction.           
-let Defs = [ESP] in
+let hasSideEffects = 1, Defs = [ESP] in
 def Int_MemBarrierNoSSE64  : RI<0x09, MRM1r, (outs), (ins GR64:$zero),
                            "lock\n\t"
                            "or{q}\t{$zero, (%rsp)|(%rsp), $zero}",