about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/std_example.rs
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-04 15:45:50 +0200
committerGitHub <noreply@github.com>2020-10-04 15:45:50 +0200
commitfa200cec889b2b2308882a897cafe92bf1cf13c7 (patch)
tree686f88df57cab7207ece45e3678c0b262a292f4f /compiler/rustc_codegen_cranelift/example/std_example.rs
parent5889cf314655a0d62f7e776c15ecd33cc20915bb (diff)
parent59c243331d60e74290102d5450587adf58597dd5 (diff)
downloadrust-fa200cec889b2b2308882a897cafe92bf1cf13c7.tar.gz
rust-fa200cec889b2b2308882a897cafe92bf1cf13c7.zip
Rollup merge of #77525 - tmiasko:nrvo-2, r=jonas-schievink
Enable RenameReturnPlace MIR optimization on 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.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions