From 1cc47c45a8529e7b6a4c297661773ab6407eab1f Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Mon, 29 Jan 2024 16:42:03 -0500 Subject: [PATCH] YJIT: No need to RESTORE_REG now that we reject tailcalls Thanks to Kokubun for noticing. Follow-up: b0711b1cf152afad0a480ee2f9bedd142a0d24ac --- vm_exec.h | 1 - 1 file changed, 1 deletion(-) diff --git a/vm_exec.h b/vm_exec.h index b1eeb506607454..11b89c30fc79ab 100644 --- a/vm_exec.h +++ b/vm_exec.h @@ -179,7 +179,6 @@ default: \ /* don't run tailcalls since that breaks FINISH */ \ if (val == Qundef && GET_CFP() != ec->cfp && (func = jit_compile(ec))) { \ val = func(ec, ec->cfp); \ - RESTORE_REGS(); /* fix cfp for tailcall */ \ if (ec->tag->state) THROW_EXCEPTION(val); \ } \ } while (0)