brintos

brintos / llvm-project-archived public Read only

0
0
Text · 811 B · 074550b Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt -passes=inline -S < %s | FileCheck %s3 4declare void @use(ptr %a)5 6define void @helper() {7; CHECK-LABEL: define void @helper() {8; CHECK-NEXT:    [[A:%.*]] = alloca i8, align 19; CHECK-NEXT:    call void @use(ptr [[A]])10; CHECK-NEXT:    ret void11;12  %a = alloca i813  call void @use(ptr %a)14  ret void15}16 17; Size in llvm.lifetime.X should be 1 (default for i8).18define void @test() {19; CHECK-LABEL: define void @test() {20; CHECK-NEXT:    [[A_I:%.*]] = alloca i8, align 121; CHECK-NEXT:    call void @llvm.lifetime.start.p0(ptr [[A_I]])22; CHECK-NEXT:    call void @use(ptr [[A_I]])23; CHECK-NEXT:    call void @llvm.lifetime.end.p0(ptr [[A_I]])24; CHECK-NEXT:    ret void25;26  call void @helper()27  ret void28}29 30