about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-01 22:43:15 +0000
committerbors <bors@rust-lang.org>2017-08-01 22:43:15 +0000
commit640cfc852ae17d51a2f5e75fcae9a93431a3b38c (patch)
treee66ffa71b26ca70a34cacbd4b81e8422a12c5e31 /src/libstd
parentdd53dd5f9e21dce1fbc06b7f9f451d1009bdcfd8 (diff)
parentce0ca763808f4b5d153aaa2787ea253286b449ef (diff)
downloadrust-640cfc852ae17d51a2f5e75fcae9a93431a3b38c.tar.gz
rust-640cfc852ae17d51a2f5e75fcae9a93431a3b38c.zip
Auto merge of #43576 - arielb1:no-unneeded-unwind, r=eddyb
rustc_mir: don't build unused unwind cleanup blocks

When building a scope exit, don't build unwind cleanup blocks unless they will actually be used by the unwind path of a drop - the unused blocks are removed by SimplifyCfg, but they can cause a significant performance slowdown before they are removed. That fixes #43511.

Also a few other small MIR cleanups & optimizations.

r? @eddyb
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions