-
Notifications
You must be signed in to change notification settings - Fork 15.7k
[llvm-dwarfdump][LineCov 1/3] Add variable coverage metrics #169646
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
eeb5e62
2681aa5
b58fcac
c6121d4
68aaa55
99a9d93
fc4f4d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,9 @@ RUN: llvm-dwarfdump --show-variable-coverage --combine-inline-variable-instances | |
|
|
||
| COMBINE: Variable coverage statistics: | ||
| COMBINE-NEXT: Function InstanceCount Variable Decl LinesCovered | ||
| COMBINE-NEXT: f 1 k test.c:22 2 | ||
| COMBINE-NEXT: f 1 l test.c:22 3 | ||
| COMBINE-NEXT: fn1 1 a test.c:14 1 | ||
| COMBINE-NEXT: fn1 1 u test.c:7 1 | ||
| COMBINE-NEXT: fn1 1 x test.c:5 1 | ||
| COMBINE-NEXT: fn1 1 y test.c:5 1 | ||
| COMBINE-NEXT: f 1 k test.c:22 5 | ||
| COMBINE-NEXT: f 1 l test.c:22 5 | ||
| COMBINE-NEXT: fn1 1 a test.c:14 0 | ||
| COMBINE-NEXT: fn1 1 u test.c:7 0 | ||
| COMBINE-NEXT: fn1 1 x test.c:5 0 | ||
| COMBINE-NEXT: fn1 1 y test.c:5 0 | ||
|
Comment on lines
+19
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Results here look a little odd; all the fn1 variables other than |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like all of the non-const arguments became
poison, rather than just the ones that were previouslyundef. It's good to test at least one variable that's completely dead, so I'd recommend keeping at least one "fully dead" variable.