Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / test / Transforms / IndVarSimplify / pr26207.ll
1 ; RUN: opt -S -indvars < %s | FileCheck %s
2
3 target triple = "x86_64-unknown-linux-gnu"
4
5 define void @main(i16 %in) {
6 ; CHECK-LABEL: @main(
7   br label %bb2
8
9 bb2:                                              ; preds = %bb1.i, %bb2, %0
10   %_tmp44.i = icmp slt i16 %in, 2
11   br i1 %_tmp44.i, label %bb1.i, label %bb2
12
13 bb1.i:                                            ; preds = %bb1.i, %bb2
14   %_tmp25.i = phi i16 [ %in, %bb2 ], [ %_tmp6.i, %bb1.i ]
15   %_tmp6.i = add nsw i16 %_tmp25.i, 1
16   %_tmp10.i = icmp sge i16 %_tmp6.i, 2
17   %exitcond.i = icmp eq i16 %_tmp6.i, 2
18   %or.cond = and i1 %_tmp10.i, %exitcond.i
19   br i1 %or.cond, label %bb2, label %bb1.i
20 }