blob: ec1b91a0d16e4d885d69a634488bf1aeeb9859af [file] [log] [blame]
Tanya Lattnerf04d8d12008-03-18 03:45:45 +00001; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
Chris Lattner4f21c172004-04-09 23:50:29 +00002
Tanya Lattnerf04d8d12008-03-18 03:45:45 +00003define i32 @test(i1 %C, i32 %V1, i32 %V2) {
Chris Lattner4f21c172004-04-09 23:50:29 +00004entry:
Tanya Lattnerf04d8d12008-03-18 03:45:45 +00005 br i1 %C, label %then, label %Cont
6then: ; preds = %entry
7 %V3 = or i32 %V2, %V1 ; <i32> [#uses=1]
Chris Lattner4f21c172004-04-09 23:50:29 +00008 br label %Cont
Tanya Lattnerf04d8d12008-03-18 03:45:45 +00009Cont: ; preds = %then, %entry
10 %V4 = phi i32 [ %V1, %entry ], [ %V3, %then ] ; <i32> [#uses=0]
11 call i32 @test( i1 false, i32 0, i32 0 ) ; <i32>:0 [#uses=0]
12 ret i32 %V1
Chris Lattner4f21c172004-04-09 23:50:29 +000013}
14