You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,29 +0,0 @@
|
||||
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
||||
|
||||
; Test that a lifetime intrinsic isn't removed because that would change semantics
|
||||
|
||||
; CHECK: foo
|
||||
; CHECK: entry:
|
||||
; CHECK: bb0:
|
||||
; CHECK: bb1:
|
||||
; CHECK: ret
|
||||
define void @foo(i1 %x) {
|
||||
entry:
|
||||
%a = alloca i8
|
||||
call void @llvm.lifetime.start.p0i8(i64 -1, i8* %a) nounwind
|
||||
br i1 %x, label %bb0, label %bb1
|
||||
|
||||
bb0:
|
||||
call void @llvm.lifetime.end.p0i8(i64 -1, i8* %a) nounwind
|
||||
br label %bb1
|
||||
|
||||
bb1:
|
||||
call void @f()
|
||||
ret void
|
||||
}
|
||||
|
||||
declare void @f()
|
||||
|
||||
declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) nounwind
|
||||
|
||||
declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) nounwind
|
Reference in New Issue
Block a user