aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll
blob: 1b3ff5bbb318577d6766e01f3472872734b7cabb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; Test for rdar://7452967
; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
  entry:
    br i1 undef, label %preheader, label %return

  preheader:
    br i1 undef, label %loop, label %return

  loop:
    indirectbr i8* undef, [label %preheader, label %stuff]

  stuff:
    %0 = load i8, i8* undef, align 1
    br label %loop

  return:
    ret void

}