[DebugInfo] Implement killOperand#89005
Closed
Snowy1803 wants to merge 3 commits into
Closed
Conversation
Rather than having two ways of storing an op_deref (prependDeref bit, or start of DIExpr), always use the prependDeref bit when creating a debug_value instruction. The stored DIExpr should only have fragments.
3bab28c to
0774a8c
Compare
This function drops debug_value operands by making them undef, rather than deleting them.
0774a8c to
e85ea0b
Compare
Member
Author
|
Moved to be part of #89412 |
This file contains hidden or 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
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.
Based on #89422
Add killOperand function to clear DebugValueInst operand. This function should be used in passes where the value cannot be salvaged.
Calls to this function should ideally be added:
Calls to this function should not be added: