This repository was archived by the owner on Jan 23, 2023. It is now read-only.
[Arm64] Fix GC Hole in genLeaInstruction#10736
Merged
BruceForstall merged 2 commits intodotnet:masterfrom Apr 9, 2017
Merged
Conversation
sdmaclea
commented
Apr 5, 2017
| // Then add the base register | ||
| // rd = rd + base | ||
| emit->emitIns_R_R_R(INS_add, EA_PTRSIZE, tmpReg, tmpReg, memBase->gtRegNum); | ||
| emit->emitIns_R_R_R(INS_add, size, tmpReg, tmpReg, memBase->gtRegNum); |
Author
There was a problem hiding this comment.
In all three cases above , size is the same as the ultimate emitAttr for the LeaInstruction. As soon as the Base() register is added it acquires its final GC attr.
Longer term it would be better to fix the CQ issue cited at the top of this function and not generate these extra instructions.
Author
|
@dotnet/arm64-contrib PTAL |
|
@dotnet-bot test Windows_NT Arm64 Checked |
|
LGTM |
Author
|
@dotnet-bot test OSX10.12 x64 Checked Build and Test please |
|
infra issue @dotnet-bot test OSX10.12 x64 Checked Build and Test please |
|
@dotnet-bot test Windows_NT Arm64 Checked |
Member
|
@dotnet-bot test OSX10.12 x64 Checked Build and Test (network) |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.