blob: 8217e8bd0843ee79d5d6b1bf00ae0218b187082e [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
Dan Gohman3e054fe2009-09-08 22:34:10 +00004; RUN: opt %s -simplifycfg -S | not grep br
Chris Lattner578cf902002-06-24 17:45:37 +00005
Tanya Lattnerceca1942008-03-10 07:21:50 +00006define i32 @main(i32 %argc) {
7; <label>:0
8 br label %InlinedFunctionReturnNode
9InlinedFunctionReturnNode: ; preds = %0
10 %X = phi i32 [ 7, %0 ] ; <i32> [#uses=1]
11 %Y = add i32 %X, %argc ; <i32> [#uses=1]
12 ret i32 %Y
Chris Lattner578cf902002-06-24 17:45:37 +000013}
14