blob: 4c0cbbc9807b422974e834822d7d20fe2fd0f715 [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
Misha Brukmane78760e2003-09-16 15:29:54 +00004; RUN: llvm-as < %s | 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