-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always run intrinsics lowering pass #80040
Conversation
r? @varkor (rust-highfive has picked a reviewer for you, use r? to override) |
📌 Commit 1b74a82 has been approved by |
Move intrinsics lowering pass from the optimization phase (where it would not run if -Zmir-opt-level=0), to the drop lowering phase where it runs unconditionally. The implementation of those intrinsics in code generation and interpreter is unnecessary. Remove it.
…nagisa Always run intrinsics lowering pass Move intrinsics lowering pass from the optimization phase (where it would not run if -Zmir-opt-level=0), to the drop lowering phase where it runs unconditionally. The implementation of those intrinsics in code generation and interpreter is unnecessary. Remove it.
1b74a82
to
a9ff4bd
Compare
I updated the test output to account for changes from #79922 (but I am leaving the |
failed in CI anyway |
@Dylan-DPC the current version should account for rollup CI failure. |
📌 Commit a9ff4bd has been approved by |
…Dylan-DPC Always run intrinsics lowering pass Move intrinsics lowering pass from the optimization phase (where it would not run if -Zmir-opt-level=0), to the drop lowering phase where it runs unconditionally. The implementation of those intrinsics in code generation and interpreter is unnecessary. Remove it.
…Dylan-DPC Always run intrinsics lowering pass Move intrinsics lowering pass from the optimization phase (where it would not run if -Zmir-opt-level=0), to the drop lowering phase where it runs unconditionally. The implementation of those intrinsics in code generation and interpreter is unnecessary. Remove it.
cc @RalfJung and @oli-obk (part of @rust-lang/miri which I can't ping) per this comment. They might have objections and/or may need to adjust Miri accordingly. |
This LGTM, and thanks for the heads-up! I'll update Miri once this lands. When more intrinsics are added to the lowering pass, please let me know. |
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#80006 (BTreeMap: more expressive local variables in merge) - rust-lang#80022 (BTreeSet: simplify implementation of pop_first/pop_last) - rust-lang#80035 (Optimization for bool's PartialOrd impl) - rust-lang#80040 (Always run intrinsics lowering pass) - rust-lang#80047 (Use more symbols in rustdoc) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
remove intrinsic that is now implemented in the rustc side Since rust-lang/rust#80040, we can rely on the pass introduced in rust-lang/rust#79049 to lower away `forget`.
Move intrinsics lowering pass from the optimization phase (where it
would not run if -Zmir-opt-level=0), to the drop lowering phase where it
runs unconditionally.
The implementation of those intrinsics in code generation and
interpreter is unnecessary. Remove it.