llvm noalias data gets lost when passing large structs #131905
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://godbolt.org/z/b8as1TxdP
i expected the functions to emit similar codegen, but the bad one doesn't get the noalias on the references themselves because llvm thinks they're passed by pointer since the struct is large.
maybe alias.scope can help with this?
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: