Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[oota-llvm.git] / test / Transforms / SimplifyCFG / PhiEliminate2.ll
1 ; RUN: opt < %s -simplifycfg -S | not grep br
2
3 define i32 @test(i1 %C, i32 %V1, i32 %V2) {
4 entry:
5         br i1 %C, label %then, label %Cont
6 then:           ; preds = %entry
7         %V3 = or i32 %V2, %V1           ; <i32> [#uses=1]
8         br label %Cont
9 Cont:           ; 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
13 }
14