From 90c09b5c4458f61baf12a5c9115a1933406f7e64 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 14 Mar 2024 13:23:51 -0400 Subject: [PATCH] gh-116808: Fix optimized trace length histogram --- Python/optimizer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 88c45f2e73c682..8b6eb7766b86fd 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -904,6 +904,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]; @@ -1040,7 +1042,6 @@ uop_optimize( if (executor == NULL) { return -1; } - OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist); *exec_ptr = executor; return 1; }