cpython icon indicating copy to clipboard operation
cpython copied to clipboard

Repeated optimizations in tier 2, due to the optimizer "failing" when it cannot optimize perfectly.

Open markshannon opened this issue 1 year ago • 0 comments

The tier 2 optimizer fails whenever it cannot optimize the entire trace, which results in a large number of repeated attempts to optimize the same code.

While we should add some form of backoff #116968 to mitigate this, we should also fix the root cause. If the optimizer can only optimize up to some point in the code, it should not throw away the work it has done.

Linked PRs

  • gh-117067

markshannon avatar Mar 20 '24 13:03 markshannon