[llvm] [StackColoring] Delete dead stack slots (PR #72633)

Fraser Cormack via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 00:23:40 PST 2023


================
@@ -0,0 +1,32 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
+; RUN:   | FileCheck %s -check-prefix=RV32I
+; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
+; RUN:   | FileCheck %s -check-prefix=RV64I
+
+; Remove the lifetime-marked alloca, but not the unmarked one.
+define dso_local signext i32 @f1() nounwind {
+; RV32I-LABEL: f1:
----------------
frasercrmck wrote:

Looks like the RV32I and RV64I checks are identical. It would be best to combine them (the default CHECK prefix) 

https://github.com/llvm/llvm-project/pull/72633


More information about the llvm-commits mailing list