From: Michael Droettboom Date: Tue, 19 Mar 2024 11:06:43 +0000 (-0400) Subject: gh-116808: Fix optimized trace length histogram (GH-116827) X-Git-Tag: v3.13.0a6~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f278012e88fa9607d85bc6c7265fd394f0ac163;p=thirdparty%2FPython%2Fcpython.git gh-116808: Fix optimized trace length histogram (GH-116827) --- diff --git a/Python/optimizer.c b/Python/optimizer.c index a6d6ffe53786..bb00e0d25757 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -913,6 +913,8 @@ make_executor_from_uops(_PyUOpInstruction *buffer, const _PyBloomFilter *depende if (executor == NULL) { return NULL; } + OPT_HIST(length, optimized_trace_length_hist); + /* Initialize exits */ for (int i = 0; i < exit_count; i++) { executor->exits[i].executor = &COLD_EXITS[i]; @@ -1051,7 +1053,6 @@ uop_optimize( if (executor == NULL) { return -1; } - OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist); *exec_ptr = executor; return 1; }