[PATCH] D98811: [GlobalISel] Don't DCE LIFETIME_START/LIFETIME_END markers.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 15:02:15 PDT 2021


arsenm 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)
----------------
Don't need the IR section


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