blob: 1587e7e144a0d5ea744604b5d17f8862a7ba9db4 [file] [log] [blame]
Chris Lattnerc917d102002-06-24 17:45:37 +00001; -simplifycfg is not folding blocks if there is a PHI node involved. This
2; should be fixed eventually
3
Chris Lattnercd1d05a2003-06-28 23:13:12 +00004; RUN: as < %s | opt -simplifycfg | dis | not grep br
Chris Lattnerc917d102002-06-24 17:45:37 +00005
6int %main(int %argc) {
7 br label %InlinedFunctionReturnNode
8
9InlinedFunctionReturnNode: ;[#uses=1]
10 %X = phi int [ 7, %0 ] ; <int> [#uses=1]
11 %Y = add int %X, %argc ; <int> [#uses=1]
12 ret int %Y
13}
14