Chris Lattner | 578cf90 | 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 | |
Reid Spencer | 69ccadd | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 4 | ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br |
Chris Lattner | 578cf90 | 2002-06-24 17:45:37 +0000 | [diff] [blame] | 5 | |
| 6 | int %main(int %argc) { |
| 7 | br label %InlinedFunctionReturnNode |
| 8 | |
| 9 | InlinedFunctionReturnNode: ;[#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 | |