1 ; RUN: llc < %s -mtriple=armv6-apple-darwin10
3 %struct.cli_ac_alt = type { i8, i8*, i16, i16, %struct.cli_ac_alt* }
4 %struct.cli_ac_node = type { i8, i8, %struct.cli_ac_patt*, %struct.cli_ac_node**, %struct.cli_ac_node* }
5 %struct.cli_ac_patt = type { i16*, i16*, i16, i16, i8, i32, i32, i8*, i8*, i32, i16, i16, i16, i16, %struct.cli_ac_alt**, i8, i16, %struct.cli_ac_patt*, %struct.cli_ac_patt* }
6 %struct.cli_bm_patt = type { i8*, i8*, i16, i16, i8*, i8*, i8, %struct.cli_bm_patt*, i16 }
7 %struct.cli_matcher = type { i16, i8, i8*, %struct.cli_bm_patt**, i32*, i32, i8, i8, %struct.cli_ac_node*, %struct.cli_ac_node**, %struct.cli_ac_patt**, i32, i32, i32 }
9 declare i32 @strlen(i8* nocapture) nounwind readonly
11 define i32 @cli_ac_addsig(%struct.cli_matcher* nocapture %root, i8* %virname, i8* %hexsig, i32 %sigid, i16 zeroext %parts, i16 zeroext %partno, i16 zeroext %type, i32 %mindist, i32 %maxdist, i8* %offset, i8 zeroext %target) nounwind {
13 br i1 undef, label %bb126, label %bb1
16 br i1 undef, label %cli_calloc.exit.thread, label %cli_calloc.exit
18 cli_calloc.exit.thread: ; preds = %bb1
21 cli_calloc.exit: ; preds = %bb1
22 store i16 %parts, i16* undef, align 4
23 br i1 undef, label %bb52, label %bb4
25 bb4: ; preds = %cli_calloc.exit
26 br i1 undef, label %bb.i, label %bb1.i3
31 bb1.i3: ; preds = %bb4
32 br i1 undef, label %bb2.i4, label %cli_strdup.exit
34 bb2.i4: ; preds = %bb1.i3
37 cli_strdup.exit: ; preds = %bb1.i3
38 br i1 undef, label %cli_calloc.exit54.thread, label %cli_calloc.exit54
40 cli_calloc.exit54.thread: ; preds = %cli_strdup.exit
43 cli_calloc.exit54: ; preds = %cli_strdup.exit
46 cli_calloc.exit70.thread: ; preds = %bb45
49 cli_calloc.exit70: ; preds = %bb45
50 br i1 undef, label %bb.i83, label %bb1.i84
52 bb.i83: ; preds = %cli_calloc.exit70
55 bb1.i84: ; preds = %cli_calloc.exit70
56 br i1 undef, label %bb2.i85, label %bb17
58 bb2.i85: ; preds = %bb1.i84
61 bb17: ; preds = %bb1.i84
62 br i1 undef, label %bb22, label %bb.nph
64 bb.nph: ; preds = %bb17
67 bb18: ; preds = %bb18, %bb.nph
68 br i1 undef, label %bb18, label %bb22
70 bb22: ; preds = %bb18, %bb17
71 br i1 undef, label %bb25, label %bb43.preheader
73 bb43.preheader: ; preds = %bb22
74 br i1 undef, label %bb28, label %bb45
79 bb28: ; preds = %bb43.preheader
82 bb45: ; preds = %bb43.preheader, %cli_calloc.exit54
83 br i1 undef, label %cli_calloc.exit70.thread, label %cli_calloc.exit70
85 bb52: ; preds = %cli_calloc.exit
86 %0 = load i16, i16* undef, align 4 ; <i16> [#uses=1]
87 %1 = icmp eq i16 %0, 0 ; <i1> [#uses=1]
88 %iftmp.20.0 = select i1 %1, i8* %hexsig, i8* null ; <i8*> [#uses=1]
89 %2 = tail call i32 @strlen(i8* %iftmp.20.0) nounwind readonly ; <i32> [#uses=0]
92 bb126: ; preds = %entry