If/when LLVM switches to deref-at-point semantics, start applying dereferenceable
to Box args/returns and loads of dereferenceable types
#94133
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Latest LLVM issue for context (currently abandoned and may not be revived): https://reviews.llvm.org/D110745
dereferenceable
currently means "dereferenceable everywhere", we avoid applyingdereferenceable
attribute toBox
:rust/compiler/rustc_middle/src/ty/layout.rs
Lines 3074 to 3080 in b8c56fa
!dereferenceable
metadata to loads, e.g. here:rust/compiler/rustc_codegen_llvm/src/builder.rs
Lines 476 to 531 in b8c56fa
@rustbot label A-llvm T-compiler S-blocked
The text was updated successfully, but these errors were encountered: