Skip to content

Commit 71a13ea

Browse files
committed
Remove compiler workaround
1 parent f18b226 commit 71a13ea

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Python/ceval.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -766,23 +766,6 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
766766
#define PY_EVAL_C_STACK_UNITS 2
767767

768768

769-
/* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC
770-
when the JIT is enabled or GIL is disabled. Disable that optimization around
771-
this function only. If this is fixed upstream, we should gate this on the
772-
version of MSVC.
773-
*/
774-
#if (defined(_MSC_VER) && \
775-
defined(_Py_USING_PGO) && \
776-
(defined(_Py_JIT) || \
777-
defined(Py_GIL_DISABLED)))
778-
#define DO_NOT_OPTIMIZE_INTERP_LOOP
779-
#endif
780-
781-
#ifdef DO_NOT_OPTIMIZE_INTERP_LOOP
782-
# pragma optimize("t", off)
783-
/* This setting is reversed below following _PyEval_EvalFrameDefault */
784-
#endif
785-
786769
PyObject* _Py_HOT_FUNCTION
787770
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
788771
{
@@ -1178,10 +1161,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
11781161

11791162
}
11801163

1181-
#ifdef DO_NOT_OPTIMIZE_INTERP_LOOP
1182-
# pragma optimize("", on)
1183-
#endif
1184-
11851164
#if defined(__GNUC__)
11861165
# pragma GCC diagnostic pop
11871166
#elif defined(_MSC_VER) /* MS_WINDOWS */

0 commit comments

Comments
 (0)