1 ; RUN: opt < %s -adce -simplifycfg -S | grep call 2 ; RUN: opt < %s -adce -adce-remove-loops -simplifycfg -S | grep call 3 4 declare void @exit(i32) 5 6 define i32 @main(i32 %argc) { 7 %C = icmp eq i32 %argc, 1 ; <i1> [#uses=2] 8 br i1 %C, label %Cond, label %Done 9 10 Cond: ; preds = %0 11 br i1 %C, label %Loop, label %Done 12 13 Loop: ; preds = %Loop, %Cond 14 call void @exit( i32 0 ) 15 br label %Loop 16 17 Done: ; preds = %Cond, %0 18 ret i32 1 19 } 20 21