11

Github Enable mutable noalias for LLVM >= 12 by nikic · Pull Request #82834 ·...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/82834
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

nikic commented 25 days ago

edited

Enable mutable noalias by default on LLVM 12, as previously known miscompiles have been resolved. Now it's time to find the next one ;)

  • The -Z mutable-noalias option no longer has an explicit default and accepts -Z mutable-noalias=yes and -Z mutable-noalias=no to override the LLVM version based default behavior.
  • The decision on whether to apply the noalias attribute is moved into rustc_codegen_llvm. rustc_middle only provides us with the necessary information to make the decision.
  • noalias is not emitted for types that are !Unpin, as a heuristic for self-referential structures (see #54878 and #63818).

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK