[llvm-commits] [llvm] r91150 - /llvm/trunk/lib/Target/ARM/ARMInstrInfo.td

Jim Grosbach grosbach at apple.com
Fri Dec 11 12:29:54 PST 2009


Author: grosbach
Date: Fri Dec 11 14:29:53 2009
New Revision: 91150

URL: http://llvm.org/viewvc/llvm-project?rev=91150&view=rev
Log:
memory barrier instructions by definition have side effects. This prevents the post-RA scheduler from moving them around.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrInfo.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=91150&r1=91149&r2=91150&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Fri Dec 11 14:29:53 2009
@@ -1574,7 +1574,7 @@
 //
 
 // memory barriers protect the atomic sequences
-let isPredicable = 0 in {
+let isPredicable = 0, hasSideEffects = 1 in {
 def Int_MemBarrierV7 : AI<(outs), (ins),
                         Pseudo, NoItinerary,
                         "dmb", "",





More information about the llvm-commits mailing list