-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
op_scope/newCONDOP: Optimise away empty else blocks in OP_COND_EXPR
This commit comprises two main changes: * Not wrapping a bare OP_STUB in an enter/leave pair (Perl_op_scope) * Checking for a bare OP_STUB in the `falseop` argument when building an OP_COND_EXPR and then freeing it, rather than adding it as a sibling to the `first` and `trueop` branches. The main benefits of this are: * lower memory usage due to unnecessary OP removal * faster execution due to unnecessary OPs not being executed There are also some small changes to Deparse.pm and an additional Deparse.t test.
- Loading branch information
1 parent
6f83688
commit 7015de1
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters