• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8define void @test() {
9	br i1 true, label %BB1, label %BB2
10BB1:		; preds = %0
11	br label %BB3
12BB2:		; preds = %0
13	br label %BB3
14BB3:		; preds = %BB3, %BB2, %BB1
15	br label %BB3
16}
17
18