blob: d7624dcacfb4ffd57c7165776b25b092f82978c1 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
6int %test(bool %B) {
7BB0:
8 br bool %B, label %BB1, label %BB3
9BB1:
10 br label %BB3
11BB3:
12 %Ret = phi int [1, %BB0], [1, %BB1]
13 ret int %Ret
14}