blob: a669a3ffc73be59b4f8a52e7729bec5791574ba9 [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
Reid Spencer69ccadd2006-12-02 04:23:10 +00004; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
Chris Lattner578cf902002-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