1 ; RUN: opt < %s -loop-simplify 2 ; RUN: opt < %s -passes=loop-simplify 3 4 ; This function should get a preheader inserted before BB3, that is jumped 5 ; to by BB1 & BB2 6 ; 7 8 define void @test() { 9 br i1 true, label %BB1, label %BB2 10 BB1: ; preds = %0 11 br label %BB3 12 BB2: ; preds = %0 13 br label %BB3 14 BB3: ; preds = %BB3, %BB2, %BB1 15 br label %BB3 16 } 17 18