aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/RISCV/dead-stack-slot.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/RISCV/dead-stack-slot.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/dead-stack-slot.ll25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/test/CodeGen/RISCV/dead-stack-slot.ll b/llvm/test/CodeGen/RISCV/dead-stack-slot.ll
deleted file mode 100644
index 49b0d2a..0000000
--- a/llvm/test/CodeGen/RISCV/dead-stack-slot.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
-; RUN: | FileCheck %s
-; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
-; RUN: | FileCheck %s
-
-; Remove the lifetime-marked alloca, but not the unmarked one.
-define signext i32 @f1() nounwind {
-; CHECK-LABEL: f1:
-; CHECK: # %bb.0:
-; CHECK-NEXT: addi sp, sp, -32
-; CHECK-NEXT: li a0, 0
-; CHECK-NEXT: addi sp, sp, 32
-; CHECK-NEXT: ret
- %1 = alloca [32 x i8], align 4
- %2 = alloca [32 x i8], align 4
- %3 = getelementptr inbounds [32 x i8], ptr %1, i64 0, i64 0
- call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3)
- call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3)
- ret i32 0
-}
-
-declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture)
-declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture)
-