Use "isa" since the variable isn't used.
[llvm-complete.git] / test / Transforms / LoopUnswitch / 2012-04-02-IndirectBr.ll
blob8ccf44523882066777c516c6008892f98461d657
1 ; RUN: opt < %s -S -loop-unswitch -verify-loop-info -verify-dom-info | FileCheck %s
2 ; RUN: opt < %s -S -loop-unswitch -verify-loop-info -verify-dom-info -enable-mssa-loop-dependency=true -verify-memoryssa | FileCheck %s
3 ; PR12343: -loop-unswitch crash on indirect branch
5 ; CHECK:       %0 = icmp eq i64 undef, 0
6 ; CHECK-NEXT:  br i1 %0, label %"5", label %"4"
8 ; CHECK:       "5":                                              ; preds = %entry
9 ; CHECK-NEXT:  br label %"16"
11 ; CHECK:       "16":                                             ; preds = %"22", %"5"
12 ; CHECK-NEXT:  indirectbr i8* undef, [label %"22", label %"33"]
14 ; CHECK:       "22":                                             ; preds = %"16"
15 ; CHECK-NEXT:  br i1 %0, label %"16", label %"26"
17 ; CHECK:       "26":                                             ; preds = %"22"
18 ; CHECK-NEXT:  unreachable
20 define void @foo() {
21 entry:
22   %0 = icmp eq i64 undef, 0
23   br i1 %0, label %"5", label %"4"
25 "4":                                              ; preds = %entry
26   unreachable
28 "5":                                              ; preds = %entry
29   br label %"16"
31 "16":                                             ; preds = %"22", %"5"
32   indirectbr i8* undef, [label %"22", label %"33"]
34 "22":                                             ; preds = %"16"
35   br i1 %0, label %"16", label %"26"
37 "26":                                             ; preds = %"22"
38   unreachable
40 "33":                                             ; preds = %"16"
41   unreachable