llvm-for-llvmta/test/Transforms/GlobalOpt/pr33686.ll

18 lines
368 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; 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
}