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 | |||||
4 | ; RUN: if as < %s | opt -sccp | dis | grep br | ||||
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 |