[llvm] [RISCV] Ignore debug instructions in epilogue block checks (PR #219401)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 07:10:53 PDT 2026
================
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=riscv32 -mattr=+save-restore -verify-machineinstrs < %s | FileCheck %s
+;
+; Debug instructions in the common return block should not affect save/restore
+; shrink wrapping.
+
+declare ptr @llvm.stacksave.p0()
+declare void @llvm.stackrestore.p0(ptr)
----------------
lukel97 wrote:
Intrinsics don't need to be declared
```suggestion
```
https://github.com/llvm/llvm-project/pull/219401
More information about the llvm-commits
mailing list