From c8f9e4fdc584c6bf48dc0f42083d05b707024b20 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 11 Dec 2009 20:29:53 +0000 Subject: [PATCH] memory barrier instructions by definition have side effects. This prevents the post-RA scheduler from moving them around. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91150 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 406264b1483..786dcfff053 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -1574,7 +1574,7 @@ def MOVCCi : AI1<0b1101, (outs GPR:$dst), // // 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", "",