blob: fb00a1342bda47e59d68a26c1cb3a972399aea87 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
2
3int %test(bool %C, int %V1, int %V2) {
4entry:
5 br bool %C, label %then, label %Cont
6
7then:
8 %V3 = or int %V2, %V1
9 br label %Cont
10Cont:
11 %V4 = phi int [%V1, %entry], [%V3, %then]
12 call int %test(bool false, int 0, int 0) ;; don't fold into preds
13 ret int %V1
14}
15