Skip to content

Commit

Permalink
Auto merge of #111807 - erikdesjardins:noalias, r=oli-obk
Browse files Browse the repository at this point in the history
[rustc_ty_utils] Treat `drop_in_place`'s *mut argument like &mut when adding LLVM attributes

This resurrects PR #103614, which has sat idle for a while.

This could probably use a new perf run, since we're on a new LLVM version now.

r? `@oli-obk`
cc `@RalfJung`

---

LLVM can make use of the `noalias` parameter attribute on the parameter to `drop_in_place` in areas like argument promotion. Because the Rust compiler fully controls the code for `drop_in_place`, it can soundly deduce parameter attributes on it.

In #103957, Miri was changed to retag `drop_in_place`'s argument as if it was `&mut`, matching this change.
  • Loading branch information
bors committed May 23, 2023
2 parents be135cd + 7025cf8 commit f29292d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f29292d

Please sign in to comment.