blob: 7ca058ffb8c352e8f8be3c35095d891d64dc52d2 [file] [log] [blame]
Chris Lattner578cf902002-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
4; RUN: if as < %s | opt -sccp | dis | grep br
5; RUN: then exit 1
6; RUN: else exit 0
7; RUN: fi
8
9int %main(int %argc) {
10 br label %InlinedFunctionReturnNode
11
12InlinedFunctionReturnNode: ;[#uses=1]
13 %X = phi int [ 7, %0 ] ; <int> [#uses=1]
14 %Y = add int %X, %argc ; <int> [#uses=1]
15 ret int %Y
16}
17