gh-112320: Implement on-trace confidence tracking for branches (#112321)

We track the confidence as a scaled int.
This commit is contained in:
Guido van Rossum 2023-12-12 13:43:08 -08:00 committed by GitHub
parent dfaa9e060b
commit 7316dfb0eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 3 deletions

View file

@ -114,6 +114,7 @@ typedef struct _optimization_stats {
uint64_t trace_too_short;
uint64_t inner_loop;
uint64_t recursive_call;
uint64_t low_confidence;
UOpStats opcode[512];
uint64_t unsupported_opcode[256];
uint64_t trace_length_hist[_Py_UOP_HIST_SIZE];