Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -loopsimplify |
2 | |||||
3 | implementation | ||||
4 | |||||
5 | ; This function should get a preheader inserted before BB3, that is jumped | ||||
6 | ; to by BB1 & BB2 | ||||
7 | ; | ||||
8 | void "test"() | ||||
9 | begin | ||||
10 | br bool true, label %BB1, label %BB2 | ||||
11 | BB1: br label %BB3 | ||||
12 | BB2: br label %BB3 | ||||
13 | |||||
14 | |||||
15 | BB3: | ||||
16 | br label %BB3 | ||||
17 | end |