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