Skip to content

Commit 0790418

Browse files
[3.13] gh-121338: Remove GH-pragma optimize (GH-121340) (#121492)
gh-121338: Remove GH-pragma optimize (GH-121340) (cherry picked from commit d69529d) Co-authored-by: Michael Droettboom <[email protected]>
1 parent 0f5ca64 commit 0790418

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
@@ -676,15 +676,6 @@ extern void _PyUOpPrint(const _PyUOpInstruction *uop);
676676
* so consume 3 units of C stack */
677677
#define PY_EVAL_C_STACK_UNITS 2
678678

679-
#if defined(_MSC_VER) && defined(_Py_USING_PGO)
680-
/* gh-111786: _PyEval_EvalFrameDefault is too large to optimize for speed with
681-
PGO on MSVC. Disable that optimization temporarily. If this is fixed
682-
upstream, we should gate this on the version of MSVC.
683-
*/
684-
# pragma optimize("t", off)
685-
/* This setting is reversed below following _PyEval_EvalFrameDefault */
686-
#endif
687-
688679
PyObject* _Py_HOT_FUNCTION
689680
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
690681
{
@@ -1125,7 +1116,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
11251116
# pragma GCC diagnostic pop
11261117
#elif defined(_MSC_VER) /* MS_WINDOWS */
11271118
# pragma warning(pop)
1128-
# pragma optimize("", on)
11291119
#endif
11301120

11311121
static void

0 commit comments

Comments
 (0)