2012-12-30 09:28:40 +08:00
|
|
|
; RUN: opt -inline -S < %s | FileCheck %s
|
2016-12-27 15:18:43 +08:00
|
|
|
; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
|
2012-11-13 15:15:32 +08:00
|
|
|
|
|
|
|
declare void @use(i8* %a)
|
|
|
|
|
|
|
|
define void @helper() {
|
|
|
|
%a = alloca i8
|
|
|
|
call void @use(i8* %a)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-03-05 02:43:29 +08:00
|
|
|
; Size in llvm.lifetime.X should be 1 (default for i8).
|
2012-11-13 15:15:32 +08:00
|
|
|
define void @test() {
|
2013-07-14 09:42:54 +08:00
|
|
|
; CHECK-LABEL: @test(
|
2012-11-13 15:15:32 +08:00
|
|
|
; CHECK-NOT: lifetime
|
2017-04-11 04:18:21 +08:00
|
|
|
; CHECK: llvm.lifetime.start.p0i8(i64 1
|
2012-11-13 15:15:32 +08:00
|
|
|
; CHECK-NOT: lifetime
|
2017-04-11 04:18:21 +08:00
|
|
|
; CHECK: llvm.lifetime.end.p0i8(i64 1
|
2012-11-13 15:15:32 +08:00
|
|
|
call void @helper()
|
|
|
|
; CHECK-NOT: lifetime
|
|
|
|
; CHECK: ret void
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|