• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Ensure that adjacent duplicated barriers are not removed at -O0.
2; RUN: llc -O0 < %s -mtriple=armv7 -mattr=+db | FileCheck %s
3
4define i32 @t1() {
5entry:
6  fence seq_cst
7  fence seq_cst
8  fence seq_cst
9  ret i32 0
10}
11
12; CHECK: @ BB#0: @ %entry
13; CHECK-NEXT: dmb ish
14; CHECK-NEXT: dmb ish
15; CHECK-NEXT: dmb ish
16