linux-packaging-mono/external/llvm/test/CodeGen/X86/unreachableblockelim.ll
Xamarin Public Jenkins (auto-signing) 279aa8f685 Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
2019-01-23 08:21:40 +00:00

22 lines
516 B
LLVM

; RUN: opt -S < %s -unreachableblockelim | FileCheck %s
; RUN: opt -S < %s -passes=unreachableblockelim | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @abort()
; CHECK-LABEL: @foo(
; CHECK-NOT: return:
define void @foo(i32* %p) {
entry:
%p.addr = alloca i32*, align 8
call void @abort()
unreachable
return: ; No predecessors!
store i32* %p, i32** %p.addr, align 8
ret void
}