about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-01-28 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-01-28 00:00:00 +0000
commitdc6ec3596b7a08c66ee3e98ca6996536ef742121 (patch)
treee7ad02205aef16d7c8cbb75ceeda77a6008961bc /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent0e190206e2ff0c13d64701d9b4145bf89a2d0cab (diff)
downloadrust-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