blob: aa24bfbc599c40ef8d8fd4047529804d58528163 [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 Lattner24161442002-07-29 21:12:20 +00004; RUN: if as < %s | opt -simplifycfg | dis | grep br
Chris Lattnerc917d102002-06-24 17:45:37 +00005; 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