blob: 4241d8ad08957e4a79de525cc9649b554be16946 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +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