brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · 4755875 Raw
21 lines · plain
1; RUN: opt < %s -passes=adce,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | grep call2; RUN: opt < %s -passes=adce,simplifycfg -adce-remove-loops -simplifycfg-require-and-preserve-domtree=1 -S | grep call3 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 %Done9 10Cond:           ; preds = %011        br i1 %C, label %Loop, label %Done12 13Loop:           ; preds = %Loop, %Cond14        call void @exit( i32 0 )15        br label %Loop16 17Done:           ; preds = %Cond, %018        ret i32 119}20 21