blob: 6b31848a94bd02dcfaad659754b3261cce6998cf [file] [log] [blame]
Cameron Zwarich4a60b932011-02-10 23:38:10 +00001; RUN: opt < %s -loop-simplify
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