This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rpeep(): skip duplicate nextstates even with gaps
authorDavid Mitchell <davem@iabyn.com>
Sat, 21 Sep 2019 11:24:45 +0000 (12:24 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 23 Sep 2019 13:42:00 +0000 (14:42 +0100)
commit64265ceb0b05ed7f7348ea0fa46d968aadb286a2
tree9453a6d827cb22d98007e9917be43f376a5093b4
parente615875676e357cae7ff37441ffc2d44f0daa94e
rpeep(): skip duplicate nextstates even with gaps

rpeep() already optimises away consecutive nextstate ops. This commit
makes it do this even if there are 'noop' ops between them like null,
scope, lineseq.

This has a specific utility for the next commit, which will reorganise
the optree for subroutine signatures in a way which introduces a lineseq
between two nextstates.
op.c