blob: 6b837d8ee0697eb5af87b2a83a8fa435dd81f239 [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -loop-unswitch -disable-output
Alina Sbirleaa4961432018-09-11 19:19:21 +00002; RUN: opt < %s -loop-unswitch -enable-mssa-loop-dependency=true -verify-memoryssa -disable-output
Devang Pateldd34d912007-07-31 08:04:17 +00003
4define i32 @main(i32 %argc, i8** %argv) {
5entry:
6 %tmp1785365 = icmp ult i32 0, 100 ; <i1> [#uses=1]
7 br label %bb
8
9bb: ; preds = %cond_true, %entry
10 br i1 false, label %cond_true, label %cond_next
11
12cond_true: ; preds = %bb
13 br i1 %tmp1785365, label %bb, label %bb1788
14
15cond_next: ; preds = %bb
16 %iftmp.1.0 = select i1 false, i32 0, i32 0 ; <i32> [#uses=1]
17 br i1 false, label %cond_true47, label %cond_next74
18
19cond_true47: ; preds = %cond_next
20 %tmp53 = urem i32 %iftmp.1.0, 0 ; <i32> [#uses=0]
21 ret i32 0
22
23cond_next74: ; preds = %cond_next
24 ret i32 0
25
26bb1788: ; preds = %cond_true
27 ret i32 0
28}