diff options
| author | bors <bors@rust-lang.org> | 2021-01-29 13:10:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-29 13:10:09 +0000 |
| commit | b122908617436af187252572ed5db96850551380 (patch) | |
| tree | e80be6c8312d12a5801ce54d129cb94b873479ae /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | c4e33b51c1a2d5e599b949fa3006467b88df253a (diff) | |
| parent | dc6ec3596b7a08c66ee3e98ca6996536ef742121 (diff) | |
| download | rust-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
