mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-115859: Disable the tier 2 redundancy eliminator by default (GH-115860)
This commit is contained in:
parent
e4561e0501
commit
3d8fc06d4f
2 changed files with 9 additions and 3 deletions
|
@ -810,9 +810,12 @@ _Py_uop_analyze_and_optimize(
|
|||
|
||||
peephole_opt(frame, buffer, buffer_size);
|
||||
|
||||
err = uop_redundancy_eliminator(
|
||||
(PyCodeObject *)frame->f_executable, buffer,
|
||||
buffer_size, curr_stacklen, dependencies);
|
||||
char *uop_optimize = Py_GETENV("PYTHONUOPSOPTIMIZE");
|
||||
if (uop_optimize != NULL && *uop_optimize > '0') {
|
||||
err = uop_redundancy_eliminator(
|
||||
(PyCodeObject *)frame->f_executable, buffer,
|
||||
buffer_size, curr_stacklen, dependencies);
|
||||
}
|
||||
|
||||
if (err == 0) {
|
||||
goto not_ready;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue