about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-29 13:10:09 +0000
committerbors <bors@rust-lang.org>2021-01-29 13:10:09 +0000
commitb122908617436af187252572ed5db96850551380 (patch)
treee80be6c8312d12a5801ce54d129cb94b873479ae /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc4e33b51c1a2d5e599b949fa3006467b88df253a (diff)
parentdc6ec3596b7a08c66ee3e98ca6996536ef742121 (diff)
downloadrust-b122908617436af187252572ed5db96850551380.tar.gz
rust-b122908617436af187252572ed5db96850551380.zip
Auto merge of #81470 - tmiasko:remove-allocations, r=matthewjasper
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions