blob: 0388b0e9eac51d2817dd7d87c106b7e33760e37c [file] [log] [blame]
Tanya Lattner348c6182008-03-25 04:26:08 +00001; RUN: llvm-as < %s | opt -loopsimplify
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3; This function should get a preheader inserted before BB3, that is jumped
4; to by BB1 & BB2
5;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner348c6182008-03-25 04:26:08 +00007define void @test() {
8 br i1 true, label %BB1, label %BB2
9BB1: ; preds = %0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010 br label %BB3
Tanya Lattner348c6182008-03-25 04:26:08 +000011BB2: ; preds = %0
12 br label %BB3
13BB3: ; preds = %BB3, %BB2, %BB1
14 br label %BB3
15}
16