-
Notifications
You must be signed in to change notification settings - Fork 784
[Outlining] Improve logging #7464
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
Conversation
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 good, but it would be good to put #if OUTLINING_DEBUG
around the new member variables and outline
parameter.
src/passes/Outlining.cpp
Outdated
stringify.exprs[seqIdx + substring.Length - 1]->type == | ||
Type::unreachable, |
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.
The duplication here creates risk that these non-trivial arguments get out of sync in the debug and non-debug versions. Can you either create a separate variable for them or restrict the scope of the ifdef?
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.
okay i restricted the scope.
Improve the quality of debug logs during outlining by: