Revert "S_regmatch: eliminate WHILEM_A_min paren saving"
authorDavid Mitchell <davem@iabyn.com>
Mon, 16 Apr 2018 10:47:00 +0000 (11:47 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 16 Apr 2018 10:57:31 +0000 (11:57 +0100)
commit81731f9a265761ad276e361b6f96b29341821ef5
treebb66a304f90b80ca108cd5c139454975a50bd7d6
parent7d2c6c240263992d62008c79c09438ef9f4a5e5e
Revert "S_regmatch: eliminate WHILEM_A_min paren saving"

This reverts commit 77584140f7cbfe714083cacfa671085466e98a7b.

This optimisation of mine from 5.25.9 is ill-conceived; under the right
permutations of backtracking, it is possible for the current positions
of one of more captures not to restored to their previous positions.

This commit reverts the code change, but keeps the benchmark part of
that commit, and adds a test
regexec.c
t/re/re_tests