mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
e677c7bd22
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237837 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
310 B
LLVM
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
|