1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -ipsccp < %s -S | FileCheck %s
3 ; RUN: opt -passes=ipsccp < %s -S | FileCheck %s
5 define void @barney() {
6 ; CHECK-LABEL: @barney(
8 ; CHECK-NEXT: br label %bb9
10 ; CHECK-NEXT: unreachable
12 ; CHECK-NEXT: unreachable
24 switch i16 0, label %bb6 [
32 ; CHECK-NEXT: br label %bb16
34 ; CHECK-NEXT: br label %bb38
36 ; CHECK-NEXT: unreachable
42 switch i32 0, label %bb38 [
65 ; CHECK-NEXT: br label %bb2
67 ; CHECK-NEXT: unreachable
69 ; CHECK-NEXT: unreachable
72 switch i16 undef, label %bb1 [
80 bb2: ; preds = %bb, %bb
81 switch i16 0, label %bb3 [
90 bb4: ; preds = %bb2, %bb2, %bb2