about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/std_example.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-04 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-04 00:00:00 +0000
commit59c243331d60e74290102d5450587adf58597dd5 (patch)
tree5c336b52b8fce1e0ae18390c212ffdfe1f562286 /compiler/rustc_codegen_cranelift/example/std_example.rs
parent32cbc65e6bf793d99dc609d11f4a4c93176cdbe2 (diff)
downloadrust-59c243331d60e74290102d5450587adf58597dd5.tar.gz
rust-59c243331d60e74290102d5450587adf58597dd5.zip
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