From 4101e1814469d192b9fad9b75c86f764e743f8ac Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 12 Feb 2024 08:08:16 +1100 Subject: [PATCH] Early reject regex instructions that were already scheduled this step --- src/regex_impl.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 2fd2254a2..58f083286 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -410,6 +410,9 @@ private: thread.inst = inst.param.jump_target; break; case CompiledRegex::Split: + if (instructions[inst.param.split.target].last_step == current_step) + break; + if (thread.saves >= 0) ++m_saves[thread.saves]->refcount;