-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inference: fixes cache lookup with extended lattice elements #53953
Conversation
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
c65542c
to
5975795
Compare
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
5975795
to
f36db1b
Compare
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
f36db1b
to
6e0c259
Compare
@nanosoldier |
6e0c259
to
13e854f
Compare
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
13e854f
to
435cef5
Compare
The previous local cache lookup system wasn't working well for caches with extended lattice elements that are transformed from the caller context to the callee context by `matching_cache_argtypes`. To address this, the current commit moves the call to `matching_cache_argtypes` right before `cache_lookup`, instead of within the `InferenceResult` constructor. Note that this adjustment leads to `given_argtypes` being allocated even when there's a cache hit, potentially affecting performance negatively. I'm looking to further optimize `matching_cache_argtypes` in an upcoming commit.
435cef5
to
a5356a4
Compare
External abstract interpreters (mainly Diffractor) may want to ir-interpret top-level code chunk.
The previous local cache lookup system wasn't working well for caches with extended lattice elements that are transformed from the caller context to the callee context by
matching_cache_argtypes
. To address this, the current commit moves the call tomatching_cache_argtypes
right beforecache_lookup
, instead of within theInferenceResult
constructor.Note that this adjustment leads to
given_argtypes
being allocated even when there's a cache hit, potentially affecting performance negatively. I'm looking to further optimizematching_cache_argtypes
in an upcoming commit.