-
Notifications
You must be signed in to change notification settings - Fork 29
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
throw away report that is lineage of current constant-propagated frame #37
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aviatesk
force-pushed
the
avi/constantpropagation
branch
from
September 21, 2020 08:02
14bbd9c
to
cf76724
Compare
aviatesk
changed the title
report throw-away by looking for lineage of this frame
throw away report that is lineage of current constant-propagated frame
Sep 21, 2020
…ous" frames - previous "cache clean up" logic potentially throws away true positive errors, while we need that to surpress false positives that can be revealed by constant propagation - this commit removes the whole reconstructions of cached reports, and just force inference on those "erronesout" `MethodInstance`s by returning `default` fallback value to `CC.get(tpc::TPCache, mi::MethodInstance, default)` - as a result, those "erronesous" frames will always re-run inference and so constant propagation will reveal false/true positives whatever it's cached (just because it ignores the cache) - this may slow down abstract interpretation performance, but cache ignorance is only done partially and so hopefully performance won't get so worse (I hope) - at the cost of that, this will simplify the whole code **a lot** and also resolves the previous problems of cache clean up of true positive reports
rm reconstruction of cached reports, just force inference on "errorne…
Codecov Report
@@ Coverage Diff @@
## master #37 +/- ##
==========================================
- Coverage 87.14% 85.65% -1.50%
==========================================
Files 9 9
Lines 731 676 -55
==========================================
- Hits 637 579 -58
- Misses 94 97 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
aviatesk
force-pushed
the
avi/constantpropagation
branch
2 times, most recently
from
September 22, 2020 07:39
ae1e7ec
to
9d31e37
Compare
aviatesk
force-pushed
the
avi/constantpropagation
branch
from
September 22, 2020 09:53
9d31e37
to
19d726b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #36