[PATCH] D98811: [GlobalISel] Don't DCE LIFETIME_START/LIFETIME_END markers.
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 15:21:16 PDT 2021
aemerson added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/GlobalISel/lifetime-marker-no-dce.mir:8-18
+ declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #0
+ declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #0
+
+ define void @test_lifetime_no_dce() {
+ %slot = alloca i8, i32 4, align 4
+ call void @llvm.lifetime.start.p0i8(i64 0, i8* %slot)
+ call void @llvm.lifetime.end.p0i8(i64 0, i8* %slot)
----------------
arsenm wrote:
> Don't need the IR section
We do because we need the stack slot defined by the alloca.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98811/new/
https://reviews.llvm.org/D98811
More information about the llvm-commits
mailing list