diff --git a/cinderx/Jit/hir/builder.cpp b/cinderx/Jit/hir/builder.cpp index e52115445d6..d6432b9839d 100644 --- a/cinderx/Jit/hir/builder.cpp +++ b/cinderx/Jit/hir/builder.cpp @@ -2197,7 +2197,6 @@ void HIRBuilder::emitLoadMethod( Environment& env, const jit::BytecodeInstruction& bc_instr) { Register* receiver = tc.frame.stack.pop(); - env.allocateLoadMethodCache(); Register* result = temps_.AllocateStack(); Register* method_instance = temps_.AllocateStack(); tc.emit(result, receiver, bc_instr.oparg(), tc.frame); diff --git a/cinderx/Jit/hir/hir.h b/cinderx/Jit/hir/hir.h index 679961b910f..8979594866a 100644 --- a/cinderx/Jit/hir/hir.h +++ b/cinderx/Jit/hir/hir.h @@ -4036,14 +4036,6 @@ class Environment { return next_load_type_attr_cache_; } - int allocateLoadMethodCache() { - return next_load_method_cache_++; - } - - int numLoadMethodCaches() const { - return next_load_method_cache_; - } - int allocateLoadTypeMethodCache() { return next_load_type_method_cache_++; } @@ -4059,7 +4051,6 @@ class Environment { ReferenceSet references_; int next_register_id_{0}; int next_load_type_attr_cache_{0}; - int next_load_method_cache_{0}; int next_load_type_method_cache_{0}; }; diff --git a/cinderx/PythonLib/test_cinderx/test_cinderjit.py b/cinderx/PythonLib/test_cinderx/test_cinderjit.py index ccf5c2b3abd..7df4a04365a 100644 --- a/cinderx/PythonLib/test_cinderx/test_cinderjit.py +++ b/cinderx/PythonLib/test_cinderx/test_cinderjit.py @@ -997,7 +997,8 @@ def test(): cinderjit.force_compile(tmp_b.test) self.assertTrue(cinderjit.is_jit_compiled(tmp_b.test)) self.assertTrue( - "LoadModuleMethodCached" in cinderjit.get_function_hir_opcode_counts(tmp_b.test) + "LoadModuleMethodCached" + in cinderjit.get_function_hir_opcode_counts(tmp_b.test) ) # prime the cache self.assertEqual(tmp_b.test(), 3)