2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | llc
|
|
|
|
; ModuleID = '2006-01-12-BadSetCCFold.ll'
|
|
|
|
%struct.node_t = type { double*, %struct.node_t*, %struct.node_t**, double**, double*, i32, i32 }
|
2006-01-13 01:02:22 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
define void @main() {
|
2006-01-13 01:02:22 +00:00
|
|
|
entry:
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 false, label %then.2.i, label %endif.2.i
|
2006-01-13 01:02:22 +00:00
|
|
|
|
|
|
|
then.2.i: ; preds = %entry
|
|
|
|
br label %dealwithargs.exit
|
|
|
|
|
|
|
|
endif.2.i: ; preds = %entry
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 false, label %then.3.i, label %dealwithargs.exit
|
2006-01-13 01:02:22 +00:00
|
|
|
|
|
|
|
then.3.i: ; preds = %endif.2.i
|
|
|
|
br label %dealwithargs.exit
|
|
|
|
|
|
|
|
dealwithargs.exit: ; preds = %then.3.i, %endif.2.i, %then.2.i
|
2008-02-19 01:41:04 +00:00
|
|
|
%n_nodes.4 = phi i32 [ 64, %then.3.i ], [ 64, %then.2.i ], [ 64, %endif.2.i ] ; <i32> [#uses=1]
|
|
|
|
%tmp.14.i1134.i.i = icmp sgt i32 %n_nodes.4, 1 ; <i1> [#uses=2]
|
|
|
|
br i1 %tmp.14.i1134.i.i, label %no_exit.i12.i.i, label %fill_table.exit22.i.i
|
2006-01-13 01:02:22 +00:00
|
|
|
|
|
|
|
no_exit.i12.i.i: ; preds = %no_exit.i12.i.i, %dealwithargs.exit
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 false, label %fill_table.exit22.i.i, label %no_exit.i12.i.i
|
2006-01-13 01:02:22 +00:00
|
|
|
|
|
|
|
fill_table.exit22.i.i: ; preds = %no_exit.i12.i.i, %dealwithargs.exit
|
|
|
|
%cur_node.0.i8.1.i.i = phi %struct.node_t* [ undef, %dealwithargs.exit ], [ null, %no_exit.i12.i.i ] ; <%struct.node_t*> [#uses=0]
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 %tmp.14.i1134.i.i, label %no_exit.i.preheader.i.i, label %make_tables.exit.i
|
2006-01-13 01:02:22 +00:00
|
|
|
|
|
|
|
no_exit.i.preheader.i.i: ; preds = %fill_table.exit22.i.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
make_tables.exit.i: ; preds = %fill_table.exit22.i.i
|
|
|
|
ret void
|
|
|
|
}
|