Skip to content
Unverified Commit d693a83e authored by Steven Perron's avatar Steven Perron Committed by GitHub
Browse files

Handle breaks from structured-ifs in DCE. (#1848)

* Handle breaks from structured-ifs in DCE.

dead code elimination assumes that are conditional branches except for
breaks and continues in loops will have an OpSelectionMerge before them.
That is not true when breaking out of a selection construct.

The fix is to look for breaks in selection constructs in the same place
we look for breaks and continues for loops.
parent 45c235d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment