Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / ConstProp / phi.ll
1 ; This is a basic sanity check for constant propogation.  The add instruction 
2 ; should be eliminated.
3
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | not grep phi
5
6 int %test(bool %B) {
7 BB0:
8         br bool %B, label %BB1, label %BB3
9 BB1:
10         br label %BB3
11 BB3:
12         %Ret = phi int [1, %BB0], [1, %BB1]
13         ret int %Ret
14 }