Skip to content

Enable RenameReturnPlace MIR optimization on mir-opt-level >= 2 - #77525

Merged
bors merged 1 commit into
rust-lang:masterfrom
tmiasko:nrvo-2
Oct 4, 2020
Merged

Enable RenameReturnPlace MIR optimization on mir-opt-level >= 2#77525
bors merged 1 commit into
rust-lang:masterfrom
tmiasko:nrvo-2

Conversation

@tmiasko

@tmiaskotmiasko commented Oct 4, 2020

Copy link
Copy Markdown
Contributor

The destination propagation as currently implemented does not supersede the NRVO, e.g., the destination propagation never applies if either local has an address taken, while NRVO might.

Additionally, the issue with failing assertions had been already resolved.

Continue running both optimizations at mir-opt-level >= 2.

The destination propagation as currently implemented does not supersede
the NRVO, e.g., the destination propagation never applies if either
local has an address taken, while NRVO might.
Additionally, the issue with failing assertions had been already
resolved.
Continue running both optimizations at mir-opt-level >= 2.
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 4, 2020
@jonas-schievink

Copy link
Copy Markdown
Contributor

Oh, nice, I thought tests would fail if we did this

@bors r+

@bors

bors commented Oct 4, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 59c2433 has been approved by jonas-schievink

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 4, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 4, 2020
…as-schievink
Rollup of 8 pull requests
Successful merges:
- rust-lang#77072 (Minor `hash_map` doc adjustments + item attribute orderings)
- rust-lang#77368 (Backport LLVM apfloat commit to rustc_apfloat)
- rust-lang#77445 (BTreeMap: complete the compile-time test_variance test case)
- rust-lang#77504 (Support vectors with fewer than 8 elements for simd_select_bitmask)
- rust-lang#77513 (Change DocFragments from enum variant fields to structs with a nested enum)
- rust-lang#77518 (Only use Fira Sans for the first `td` in item lists)
- rust-lang#77521 (Move target feature whitelist from cg_llvm to cg_ssa)
- rust-lang#77525 (Enable RenameReturnPlace MIR optimization on mir-opt-level >= 2)
Failed merges:
r? `@ghost`
@bors
bors merged commit fa200ce into rust-lang:masterOct 4, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 4, 2020
@tmiasko
tmiasko deleted the nrvo-2 branch October 4, 2020 17:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tmiasko@jonas-schievink@bors@rust-highfive@rustbot