Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; -simplifycfg is not folding blocks if there is a PHI node involved. This |
2 | ; should be fixed eventually | ||||
3 | |||||
4 | ; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br | ||||
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 |