llvm-project/llvm/test/Transforms/GlobalOpt/pr33686.ll

18 lines
368 B
LLVM

; 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
}