Calculation of the size of a basic block is not thread-safe, hence add a
lock.
Additionally, free CFG-related members after the deletion.
Differential D119674
[BOLT] Make BinaryFunction::eraseInvalidBBs() thread-safe maksfb on Feb 13 2022, 11:15 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions These blocks are still referenced from BasicBlockOffsets that is used for debug info updates, so we cannot delete them until the function is destroyed.
|
Maybe move lock under estimateSize()?