gh-146073: Add fitness/exit quality mechanism for JIT trace frontend (GH-148089)
* Replaces ad-hoc logic for ending traces with a simple inequality: `fitness < exit_quality` * Fitness starts high and is reduced for branches, backward edges, calls and trace length * Exit quality reflect how good a spot that instruction is to end a trace. Closing a loop is very, specializable instructions are very low and the others in between.
H
Hai Zhu committed
618b726d68ccd7ae933ced615fd384d62a42ac51
Parent: 448d7b9
Committed by GitHub <noreply@github.com>
on 4/24/2026, 9:37:01 AM