Skip to content

Commit 5cdd6e5

Browse files
gh-130004: Disable PGO for ceval.c on MSVC for default build (GH-130009)
Disable PGO for ceval.c on MSVC on default build
1 parent 3b548ad commit 5cdd6e5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Python/ceval.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,10 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
764764
#define PY_EVAL_C_STACK_UNITS 2
765765

766766

767-
/* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC
768-
when the JIT is enabled or GIL is disabled. Disable that optimization around
769-
this function only. If this is fixed upstream, we should gate this on the
770-
version of MSVC.
767+
/* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC.
771768
*/
772769
#if (defined(_MSC_VER) && \
773-
defined(_Py_USING_PGO) && \
774-
(defined(_Py_JIT) || \
775-
defined(Py_GIL_DISABLED)))
770+
defined(_Py_USING_PGO))
776771
#define DO_NOT_OPTIMIZE_INTERP_LOOP
777772
#endif
778773

0 commit comments

Comments
 (0)