Open1

Rustのmutable参照はLLVMのnoalias?

yohhoyyohhoy

StackOverflow - Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?

This has happened multiple times.

  • Rust 1.0 through 1.7 — noalias enabled
  • Rust 1.8 through 1.27 — noalias disabled
  • Rust 1.28 through 1.29 — noalias enabled
  • Rust 1.30 through 1.54 — noalias disabled
  • Rust 1.54 through ??? — noalias conditionally enabled depending on the version of LLVM the compiler uses

Enable mutable noalias for LLVM >= 12 [Merged]
https://github.com/rust-lang/rust/pull/82834