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