Chris Lattner | c917d10 | 2002-06-24 17:45:37 +0000 | [diff] [blame] | 1 | ; -simplifycfg is not folding blocks if there is a PHI node involved. This |
| 2 | ; should be fixed eventually |
| 3 | |
Chris Lattner | 2416144 | 2002-07-29 21:12:20 +0000 | [diff] [blame] | 4 | ; RUN: if as < %s | opt -simplifycfg | dis | grep br |
Chris Lattner | c917d10 | 2002-06-24 17:45:37 +0000 | [diff] [blame] | 5 | ; RUN: then exit 1 |
| 6 | ; RUN: else exit 0 |
| 7 | ; RUN: fi |
| 8 | |
| 9 | int %main(int %argc) { |
| 10 | br label %InlinedFunctionReturnNode |
| 11 | |
| 12 | InlinedFunctionReturnNode: ;[#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 | |