aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/pr21651.ll
blob: 914785f329af5a6570fca560da996299a05ff06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: opt < %s -instcombine -S | FileCheck %s

define void @PR21651() {
  switch i2 0, label %out [
    i2 0, label %out
    i2 1, label %out
  ]

out:
  ret void
}

; CHECK-LABEL: define void @PR21651(
; CHECK:   switch i2 0, label %out [
; CHECK:     i2 0, label %out
; CHECK:     i2 1, label %out
; CHECK:   ]
; CHECK: out:                                              ; preds = %0, %0, %0
; CHECK:   ret void
; CHECK: }