-
Notifications
You must be signed in to change notification settings - Fork 12.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
Working expression optimization, and some improvements to branch-level source coverage #78267
Merged
bors
merged 12 commits into
rust-lang:master
from
richkadel:llvm-coverage-counters-2.0.3r1
Nov 6, 2020
Merged
Working expression optimization, and some improvements to branch-level source coverage #78267
bors
merged 12 commits into
rust-lang:master
from
richkadel:llvm-coverage-counters-2.0.3r1
Nov 6, 2020
Commits on Nov 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c7747cc - Browse repository at this point
Copy the full SHA c7747ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7ae4c2 - Browse repository at this point
Copy the full SHA c7ae4c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b502064 - Browse repository at this point
Copy the full SHA b502064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3291d28 - Browse repository at this point
Copy the full SHA 3291d28View commit details -
Injecting expressions in place of counters where helpful
Implementing the Graph traits for the BasicCoverageBlock graph. optimized replacement of counters with expressions plus new BCB graphviz * Avoid adding coverage to unreachable blocks. * Special case for Goto at the end of the body. Make it non-reportable. Improved debugging and formatting options (from env) Don't automatically add counters to BCBs without CoverageSpans. They may still get counters but only if there are dependencies from other BCBs that have spans, I think. Make CodeRegions optional for Counters too. It is possible to inject counters (`llvm.instrprof.increment` intrinsic calls without corresponding code regions in the coverage map. An expression can still uses these counter values. Refactored instrument_coverage.rs -> instrument_coverage/mod.rs, and then broke up the mod into multiple files. Compiling with coverage, with the expression optimization, works on the json5format crate and its dependencies. Refactored debug features from mod.rs to debug.rs
Configuration menu - View commit details
-
Copy full SHA for 198ba3b - Browse repository at this point
Copy the full SHA 198ba3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5545c56 - Browse repository at this point
Copy the full SHA 5545c56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1973f84 - Browse repository at this point
Copy the full SHA 1973f84View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7d9565 - Browse repository at this point
Copy the full SHA a7d9565View commit details -
More portable way to make python 2/3 portable. Strip Args line (with hardcoded paths) from debug counters output. Ignore diff failures from llvm-cov debug output files ("counters" files), since generic function instantiations will appear in those files with mangled names. (Sadly, the demangler is apparently not applied to the debug output.)
Configuration menu - View commit details
-
Copy full SHA for cdbce10 - Browse repository at this point
Copy the full SHA cdbce10View commit details -
rename some tests to avoid exceeding windows path limits
And restored missing error message from llvm-cov show And since some CI builds disable LLVM assertions (which disables the --debug option in llvm-cov show), I check to see if LLVM assertions are disabled, and if so, I don't add --debug and don't check the counter file diffs.
Configuration menu - View commit details
-
Copy full SHA for 8fc697f - Browse repository at this point
Copy the full SHA 8fc697fView commit details -
add -e between -i and quoted script I had tested on my mac but forgot I had aliased sed=gsed. My bad.
Configuration menu - View commit details
-
Copy full SHA for 430dcb6 - Browse repository at this point
Copy the full SHA 430dcb6View commit details -
Disable the spanview tests on MacOS for now
And even though CI should now pass for MacOS, the llvm-cov show --debug flag does not work when developing outside of CI, so I'm disabling it for MacOS by default.
Configuration menu - View commit details
-
Copy full SHA for 68014e6 - Browse repository at this point
Copy the full SHA 68014e6View commit details
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.