1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=ipsccp < %s -S | FileCheck %s
4 define void @barney() {
5 ; CHECK-LABEL: @barney(
7 ; CHECK-NEXT: br label [[BB9:%.*]]
9 ; CHECK-NEXT: unreachable
11 ; CHECK-NEXT: br label [[BB6:%.*]]
23 switch i16 0, label %bb6 [
31 ; CHECK-NEXT: br label [[BB16:%.*]]
33 ; CHECK-NEXT: br label [[BB38:%.*]]
35 ; CHECK-NEXT: unreachable
41 switch i32 0, label %bb38 [
64 ; CHECK-NEXT: br label [[BB2:%.*]]
66 ; CHECK-NEXT: br label [[BB3:%.*]]
68 ; CHECK-NEXT: unreachable
71 switch i16 undef, label %bb1 [
79 bb2: ; preds = %bb, %bb
80 switch i16 0, label %bb3 [
89 bb4: ; preds = %bb2, %bb2, %bb2