summaryrefslogtreecommitdiffstats
path: root/Python/optimizer_analysis.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/optimizer_analysis.c')
-rw-r--r--Python/optimizer_analysis.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c
index 8c86641..f7adb44 100644
--- a/Python/optimizer_analysis.c
+++ b/Python/optimizer_analysis.c
@@ -52,14 +52,6 @@
#define DPRINTF(level, ...)
#endif
-
-
-static inline bool
-op_is_end(uint32_t opcode)
-{
- return opcode == _EXIT_TRACE || opcode == _JUMP_TO_TOP;
-}
-
static int
get_mutations(PyObject* dict) {
assert(PyDict_CheckExact(dict));
@@ -288,7 +280,7 @@ remove_globals(_PyInterpreterFrame *frame, _PyUOpInstruction *buffer,
prechecked_function_version = (uint32_t)buffer[pc].operand;
break;
default:
- if (op_is_end(opcode)) {
+ if (is_terminator(inst)) {
return 1;
}
break;
@@ -552,6 +544,7 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
}
case _JUMP_TO_TOP:
case _EXIT_TRACE:
+ case _DYNAMIC_EXIT:
return pc + 1;
default:
{