| Misha Brukman | e78760e | 2003-09-16 15:29:54 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -preheaders |
| Chris Lattner | 0a4e422 | 2002-09-26 19:50:11 +0000 | [diff] [blame] | 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 | ||||