1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/ARM/noopt-dmb-v7.ll
Davide Italiano 4ae19d2fd4 [Target/ARM] Only enable OptimizeBarrierPass at -O1 and above.
Ideally this is going to be and LLVM IR pass (shared, among others
with AArch64), but for the time being just enable it if consumers
ask us for optimization and not unconditionally.

Discussed with Tim Northover on IRC.

llvm-svn: 237837
2015-05-20 21:40:38 +00:00

16 lines
310 B
LLVM

; Ensure that adjacent duplicated barriers are not removed at -O0.
; RUN: llc -O0 < %s -mtriple=armv7 -mattr=+db | FileCheck %s
define i32 @t1() {
entry:
fence seq_cst
fence seq_cst
fence seq_cst
ret i32 0
}
; CHECK: @ BB#0: @ %entry
; CHECK-NEXT: dmb ish
; CHECK-NEXT: dmb ish
; CHECK-NEXT: dmb ish