1 ; RUN: llc < %s -mtriple=thumbv7-apple-ios
3 ; If converter was being too cute. It look for root BBs (which don't have
4 ; successors) and use inverse depth first search to traverse the BBs. However
5 ; that doesn't work when the CFG has infinite loops. Simply do a linear
6 ; traversal of all BBs work just fine.
10 %struct.hc = type { i32, i32, i32, i32 }
12 define i32 @t(i32 %type) optsize {
14 br i1 undef, label %if.then, label %if.else
20 br i1 undef, label %if.then15, label %if.else18
26 switch i32 %type, label %if.else173 [
27 i32 3, label %if.then115
28 i32 1, label %if.then102
32 br i1 undef, label %cond.true10.i, label %t.exit
41 br i1 undef, label %if.else163, label %if.else145
44 %call150 = call fastcc ptr @foo(ptr undef, i32 34865152) optsize
45 br label %while.body172
48 %call168 = call fastcc ptr @foo(ptr undef, i32 34078720) optsize
49 br label %while.body172
52 br label %while.body172
58 declare hidden fastcc ptr @foo(ptr nocapture, i32) nounwind optsize