11
Github Enable mutable noalias for LLVM >= 12 by nikic · Pull Request #82834 ·...
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.
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).
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK