-
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
Remove old multi-dimensional array code #71678
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsAfter #70271, the Once we are confident in the direction of #70271 (confident that we don't want to revert to the old mechanism), we should remove all this dead code, as well as the
|
Somewhat related: There is a StyleCop rule recommending avoiding multi-dimensional arrays: CA1814: Prefer jagged arrays over multidimensional (code analysis) - .NET | Microsoft Docs Interestingly, the documentation emphasizes that this is for size, not performance, reasons. Seems extremely unlikely the size case is what led to the rule or that size concerns are frequent when making a choice between the two types. Also seems like a post-hoc explanation, given that the documentation text was relatively recently changed to emphasize this: Update CA1814 and jagged arrays by gewarren · Pull Request #22088 · dotnet/docs (github.com) It’s not wrong, but possibly misleading if someone sees that warning but doesn’t read the explanation. Consider getting this rule removed. |
MD array processing in the JIT changed with dotnet#70271, making all the code that implemented the old processing method unused. Remove all this unused code. Fixes dotnet#71678
After #70271, the
GT_ARR_ELEM
,GT_ARR_OFFSET
, andGT_ARR_INDEX
nodes, and their respective GenTree structures and all related codegen, are unneeded and are dead code.Once we are confident in the direction of #70271 (confident that we don't want to revert to the old mechanism), we should remove all this dead code, as well as the
JitEarlyExpandMDArrays
andJitEarlyExpandMDArraysFilter
configuration values.category:cq
theme:md-arrays
skill-level:beginner
cost:small
impact:small
The text was updated successfully, but these errors were encountered: