-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Delete GT_DYN_BLK
#63026
Merged
Merged
Delete GT_DYN_BLK
#63026
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
de84dc4
Import GT_STORE_DYN_BLK directly
SingleAccretion f67b4b3
Delete GT_DYN_BLK
SingleAccretion af3f667
DynBlk -> StoreDynBlk
SingleAccretion fecc339
Add some tests
SingleAccretion 86d4b95
Mark tests Pri-1
SingleAccretion d3263b6
Rebase and fix build
SingleAccretion 36f4353
Bring back the odd early return
SingleAccretion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
Maybe I haven't seen it yet, but why get rid of the reverse ops option? Isn't that used to improve codegen if the order doesn't matter, so we can execute the heavier op first?
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.
This was dead code - nothing sets
GTF_REVERSE_OPS
on aSTORE_DYN_BLK
node.GTF_REVERSE_OPS
is only supported for (most) binary nodes and 2-operandGenTreeMultiOp
s.However, what did happen is that we reversed
ASG
s that would later turn intoSTORE_DYN_BLK
s and now we don't. The handling could be added, but it would have to be "non-standard" becauseSTORE_DYN_BLK
is a tertiary operator, and I believe, based on the diffs for this change, that it would not be worth it at this point.Side note: we could get all the 6 permutations of order "for free" if we changed
STORE_DYN_BLK
from a tertiary operator withDynamicSize
as its member into two binary operators:STORE_DYN_BLK(DstAddr, Data)
whereData
would beDYN_BLK(Addr, Size) | DYN_BLK_INIT_VAL(InitVal, Size)
, and also solve the problem with the "dummy"IND struct
node. But as I note in the description it would be a larger change with quite a bit of churn to it.