diff options
author | Guido van Rossum <guido@python.org> | 2024-02-26 16:42:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 16:42:53 (GMT) |
commit | c0fdfba7ff981c55ac13325e4dddaf382601b246 (patch) | |
tree | e14685399610c911742e035a1c34cd61190ea112 /Python/optimizer_analysis.c | |
parent | 7259480957e10359cc5ab8786f32f197c88e274c (diff) | |
download | cpython-c0fdfba7ff981c55ac13325e4dddaf382601b246.zip cpython-c0fdfba7ff981c55ac13325e4dddaf382601b246.tar.gz cpython-c0fdfba7ff981c55ac13325e4dddaf382601b246.tar.bz2 |
Rename tier 2 redundancy eliminator to optimizer (#115888)
The original name is just too much of a mouthful.
Diffstat (limited to 'Python/optimizer_analysis.c')
-rw-r--r-- | Python/optimizer_analysis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c index 47bfc8c..1a9e829 100644 --- a/Python/optimizer_analysis.c +++ b/Python/optimizer_analysis.c @@ -1,5 +1,5 @@ /* - * This file contains the support code for CPython's uops redundancy eliminator. + * This file contains the support code for CPython's uops optimizer. * It also performs some simple optimizations. * It performs a traditional data-flow analysis[1] over the trace of uops. * Using the information gained, it chooses to emit, or skip certain instructions @@ -606,7 +606,7 @@ remove_globals(_PyInterpreterFrame *frame, _PyUOpInstruction *buffer, /* 1 for success, 0 for not ready, cannot error at the moment. */ static int -uop_redundancy_eliminator( +optimize_uops( PyCodeObject *co, _PyUOpInstruction *trace, int trace_len, @@ -638,7 +638,7 @@ uop_redundancy_eliminator( _PyUOpName(opcode), oparg); switch (opcode) { -#include "tier2_redundancy_eliminator_cases.c.h" +#include "optimizer_cases.c.h" default: DPRINTF(1, "Unknown opcode in abstract interpreter\n"); @@ -812,7 +812,7 @@ _Py_uop_analyze_and_optimize( char *uop_optimize = Py_GETENV("PYTHONUOPSOPTIMIZE"); if (uop_optimize != NULL && *uop_optimize > '0') { - err = uop_redundancy_eliminator( + err = optimize_uops( (PyCodeObject *)frame->f_executable, buffer, buffer_size, curr_stacklen, dependencies); } |