From ee8bf252a020c02dcd025e41d258d178c788f3c8 Mon Sep 17 00:00:00 2001 From: Nickolas Lloyd Date: Thu, 22 Dec 2016 17:40:44 -0500 Subject: [PATCH] Enable optimization of JITed functions. ; * src/bytecode-jit.c (jit_byte_code__): Set highest optimization level when compiling functions. --- src/bytecode-jit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bytecode-jit.c b/src/bytecode-jit.c index 3860ade916f..1a5e6527b45 100644 --- a/src/bytecode-jit.c +++ b/src/bytecode-jit.c @@ -745,6 +745,8 @@ jit_byte_code__ (Lisp_Object byte_code) params[0] = jit_type_void_ptr; signature = jit_type_create_signature (jit_abi_cdecl, jit_type_nuint, params, 1, 1); this_func = jit_function_create (jit_context, signature); + jit_function_set_optimization_level (this_func, + jit_function_get_max_optimization_level ()); stackv = jit_value_get_param (this_func, 0); labels = alloca (sizeof (*labels) * SBYTES (bytestr)); { -- 2.39.5