HomePhabricator

[LoopDeletion] Remove dead loops with no exit blocks

Authored by atmnpatel on Oct 25 2020, 3:30 PM.

Description

[LoopDeletion] Remove dead loops with no exit blocks

Currently, LoopDeletion refuses to remove dead loops with no exit blocks
because it cannot statically determine the control flow after it removes
the block. This leads to miscompiles if the loop is an infinite loop and
should've been removed.

Differential Revision: https://reviews.llvm.org/D90115

Details

Committed
atmnpatelNov 6 2020, 2:08 PM
Differential Revision
D90115: [LoopDeletion] Remove dead loops with no exit blocks
Parents
rGf147f59cd377: [llvm-objcopy][MachO] Skip sections with zero offset
Branches
Unknown
Tags
Unknown