gh-129244: Only remove the workaround when MSVC has the bugfix (#130011)

This commit is contained in:
Michael Droettboom 2025-02-11 14:49:42 -05:00 committed by GitHub
parent 53e8e72dab
commit 00ec781877
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -767,6 +767,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
/* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC.
*/
#if (defined(_MSC_VER) && \
(_MSC_VER < 1943) && \
defined(_Py_USING_PGO))
#define DO_NOT_OPTIMIZE_INTERP_LOOP
#endif