Uh oh!
There was an error while loading. Please reload this page.
[release/7.0] JIT: fix incorrect scale in genCreateAddrMode + no-opt - #75560
Conversation
ghost
commented
Sep 13, 2022
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsBackport of #75433 to release/7.0 /cc @EgorBo Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
JulieLeeMSFT
commented
Sep 13, 2022
@kunalspathak, please review this 7.0 backporting PR. |
JulieLeeMSFT
commented
Sep 13, 2022
cc @jeffschwMSFT for 7.0 backport. |
jeffschwMSFT
left a comment
There was a problem hiding this comment.
approved. once we have a code review, a green ci, and the main issue is merged, this can merge.
carlossanlop
commented
Sep 14, 2022
Main issue has been merged. This has been approved, signed off, and CI is green. Ready to merge. |
Backport of #75433 to release/7.0
/cc @EgorBo
Customer Impact
Fixes a bug where for unoptimized code JIT emits a memory load for e.g. an array with an incorrect offset, e.g.:
array[index * 0 + 1]ends up accessingarray[index + 1]instead ofarray[1]- it's not possible to reproduce this in pure C# because Roslyn foldsx * 0to0even in Debug but it can be reproduced with C++/CLI (initially was reported as https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1595540?src=WorkItemMention&src-action=artifact_link) or custom IL.Testing
Test is added, no impact on existing C# code
Risk
Low