diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-01-28 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-01-28 00:00:00 +0000 |
| commit | dc6ec3596b7a08c66ee3e98ca6996536ef742121 (patch) | |
| tree | e7ad02205aef16d7c8cbb75ceeda77a6008961bc /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 0e190206e2ff0c13d64701d9b4145bf89a2d0cab (diff) | |
| download | rust-dc6ec3596b7a08c66ee3e98ca6996536ef742121.tar.gz rust-dc6ec3596b7a08c66ee3e98ca6996536ef742121.zip | |
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/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
