Commit Graph

2 Commits

Author SHA1 Message Date
Andrea Gussoni 27192a251f Improved IfEqualNode then and else match
Improved the method for matching the `then` and `else` branches when
creating the AST node for the `IfEqualNode`.

Also converted the name of an auxiliary pass to the convention.
2019-03-08 15:44:29 +01:00
Andrea Gussoni c05974478c Add RemoveUnexpectedPCPass
Add a pass which removes the `unexpectedpc` as successor of the `switch`
instructions. This simplifies the subsequent analyses.

This pass also removes the unreachable basic blocks dandling around (as
the `unexpectedpc` and `anypc` blocks when they are not needed).
2019-03-08 15:31:30 +01:00