This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
study_chunk: generate ANYOFM here rather than in join_exact()
authorHugo van der Sanden <hv@crypt.org>
Thu, 16 Jan 2020 15:42:05 +0000 (15:42 +0000)
committerKarl Williamson <khw@cpan.org>
Thu, 16 Jan 2020 18:50:41 +0000 (11:50 -0700)
commit94ac11788355164e13b9258ce3dd595922ae303b
tree1a7b572c7b27fe33a89d2aa0e3cd0293962630d2
parentb7da5e65d666d7b7c1eace2dff55ff1d323fa0da
study_chunk: generate ANYOFM here rather than in join_exact()

When we detect an EXACTFish node cannot be extended by joining with others,
and is short and simple enough, we want to replace it with ANYOFM.

Prefer to do that in the study_chunk() handling of EXACTFish nodes: this
isn't part of join_exact's responsibilities (and is not documented there),
and moving it will make subsequent refactoring easier.

Note that this means it will no longer happen earlier as part of the
experimental regtail_study() call to join_exact(), currently invoked
only if perl is built with PERL_ENABLE_EXPERIMENTAL_REGEX_OPTIMISATIONS.
regcomp.c