]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #81470 - tmiasko:remove-allocations, r=matthewjasper
authorbors <bors@rust-lang.org>
Fri, 29 Jan 2021 13:10:09 +0000 (13:10 +0000)
committerbors <bors@rust-lang.org>
Fri, 29 Jan 2021 13:10:09 +0000 (13:10 +0000)
Avoid memory allocation when removing dead blocks

Use `reachable_as_bitset` to reuse a bitset from the traversal rather
than allocating it seprately. Additionally check if there are any
unreachable blocks before proceeding.


Trivial merge