Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 7015de19863573066cc75ff79721681082895466 https://github.com/Perl/perl5/commit/7015de19863573066cc75ff79721681082895466 Author: Richard Leach <richardle...@users.noreply.github.com> Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths: M lib/B/Deparse.pm M lib/B/Deparse.t M op.c Log Message: ----------- 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. To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications