- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Open
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Description
fgRemoveDeadBlocks() removes unreachable code by starting from a set of initial blocks and walking control-flow paths until all reachable blocks are marked, then removing any unmarked blocks.
However, this will not remove any EH handlers (finally/fault/catch/filter/filter-handler) even if the associated try is not reachable.
Change the logic to only add the EH handler entries corresponding to a try to the reachable set once a reachable try body is found.
This will also require ensuring the related EH table entry is removed if necessary.
kunalspathak, yowl and saucecontrol
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI