8000 gh-121338: Remove #pragma optimize (#121340) · python/cpython@d69529d · GitHub
[go: up one dir, main page]

Skip to content

Commit d69529d

Browse files
authored
gh-121338: Remove #pragma optimize (#121340)
1 parent 59be79a commit d69529d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Python/ceval.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -730,15 +730,6 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
730730
* so consume 3 units of C stack */
731731
#define PY_EVAL_C_STACK_UNITS 2
732732

733-
#if defined(_MSC_VER) && defined(_Py_USING_PGO)
734-
/* gh-111786: _PyEval_EvalFrameDefault is too large to optimize for speed with
735-
PGO on MSVC. Disable that optimization temporarily. If this is fixed
736-
upstream, we should gate this on the version of MSVC.
737-
*/
738-
# pragma optimize("t", off)
739-
/* This setting is reversed below following _PyEval_EvalFrameDefault */
740-
#endif
741-
742733
PyObject* _Py_HOT_FUNCTION
743734
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
744735
{
@@ -1158,7 +1149,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
11581149
# pragma GCC diagnostic pop
11591150
#elif defined(_MSC_VER) /* MS_WINDOWS */
11601151
# pragma warning(pop)
1161-
# pragma optimize("", on)
11621152
#endif
11631153

11641154
static void

0 commit comments

Comments
 (0)
0