blob: a6f03d69b675f3bac5c028e3dad0f7118c627906 [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -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