summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalOpt/pr33686.ll
blob: d6bb98735f4e863a0451ae04d97851e98275071d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -globalopt %s | FileCheck %s

@glob = external global i16, align 1

define void @beth() {
; CHECK-LABEL: @beth(
; CHECK-NEXT:  entry:
; CHECK-NEXT:    ret void
;
entry:
  ret void

notreachable:
  %patatino = select i1 undef, i16* @glob, i16* %patatino
  br label %notreachable
}
OpenPOWER on IntegriCloud