Chris Lattner | bcecb4b | 2003-04-18 19:22:39 +0000 | [diff] [blame^] | 1 | ; This testcases makes sure that mem2reg can handle unreachable blocks. |
2 | ; RUN: as < %s | opt -mem2reg | ||||
3 | |||||
4 | int %test() { | ||||
5 | %X = alloca int | ||||
6 | |||||
7 | store int 6, int* %X | ||||
8 | br label %Loop | ||||
9 | Loop: | ||||
10 | store int 5, int* %X | ||||
11 | br label %EndOfLoop | ||||
12 | Unreachable: | ||||
13 | br label %EndOfLoop | ||||
14 | |||||
15 | EndOfLoop: | ||||
16 | br label %Loop | ||||
17 | } |