about summary refs log tree commit diff
path: root/tests/codegen-llvm/loongarch-abi
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-08-08 12:39:30 +0200
committerNikita Popov <npopov@redhat.com>2025-08-11 12:39:23 +0200
commitebef9d7f6387fb0541a0dab48d1cd1f86556df04 (patch)
tree56bbcaea12e6bc5e848ddecdb3bf95fcf7c4b90c /tests/codegen-llvm/loongarch-abi
parent2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a (diff)
downloadrust-ebef9d7f6387fb0541a0dab48d1cd1f86556df04.tar.gz
rust-ebef9d7f6387fb0541a0dab48d1cd1f86556df04.zip
Set dead_on_return attribute for indirect arguments
Set the dead_on_return attribute (added in LLVM 21) for arguments
that are passed indirectly, but not byval.

This indicates that the value of the argument on return does not
matter, enabling additional dead store elimination.
Diffstat (limited to 'tests/codegen-llvm/loongarch-abi')
-rw-r--r--tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs b/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs
index 93c8d60930b..4666342a16a 100644
--- a/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs
+++ b/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs
@@ -256,7 +256,7 @@ pub struct IntDoubleInt {
     c: i32,
 }
 
-// CHECK: define void @f_int_double_int_s_arg(ptr noalias{{( nocapture)?}} noundef align 8{{( captures\(none\))?}} dereferenceable(24) %a)
+// CHECK: define void @f_int_double_int_s_arg(ptr{{( dead_on_return)?}} noalias{{( nocapture)?}} noundef align 8{{( captures\(none\))?}} dereferenceable(24) %a)
 #[no_mangle]
 pub extern "C" fn f_int_double_int_s_arg(a: IntDoubleInt) {}