From 693c01d50917071433ff1bc7c4d8ce626a12c48e Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 14 Dec 2022 15:12:44 -0500 Subject: [PATCH] YJIT: Remove duplicate call to jit_prepare_routine_call() It's idempotent. --- yjit/src/codegen.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 16fe837f4d..ab87038c67 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -2219,9 +2219,6 @@ fn gen_setinstancevariable( let ic = jit_get_arg(jit, 1).as_u64(); // type IVC // The function could raise exceptions. - jit_prepare_routine_call(jit, ctx, asm); - - // Save the PC and SP because the callee may allocate // Note that this modifies REG_SP, which is why we do it first jit_prepare_routine_call(jit, ctx, asm);