Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix putArgStk dstCount and ConsumeReg errors #8928

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

CarolEidt
Copy link

The LastConsumedNode used in genCheckConsumeNode was not initialized for arm64.
Fixing this exposed several places where nodes were being consumed twice or in the wrong order.
In addition, since GT_PUTARG_STK doesn't define a register, its dstCount needs to be zero. This is enabled by checking IsValue() instead of type of TYP_VOID for the default case of TreeNodeInfoInit. This was missed for both arm and arm64.

Fix #8898

The LastConsumedNode used in genCheckConsumeNode was not initialized for arm64.
Fixing this exposed several places where nodes were being consumed twice or in the wrong order.
In addition, since GT_PUTARG_STK doesn't define a register, its dstCount needs to be zero. This is enabled by checking IsValue() instead of type of TYP_VOID for the default case of TreeNodeInfoInit. This was missed for both arm and arm64.
@CarolEidt
Copy link
Author

@dotnet-bot test Windows_NT arm64 Debug

@CarolEidt
Copy link
Author

@pgavlin @briansull PTAL
cc @dotnet/jit-contrib

Copy link

@pgavlin pgavlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this!

@sivarv
Copy link
Member

sivarv commented Jan 12, 2017

:shipit:

@briansull
Copy link

LGTM

@jashook
Copy link

jashook commented Jan 12, 2017

@dotnet-bot test Windows_NT arm64 Debug

@CarolEidt
Copy link
Author

@dotnet-bot test Ubuntu x64 Checked Build and Test

@CarolEidt CarolEidt merged commit b775947 into dotnet:master Jan 12, 2017
@CarolEidt CarolEidt deleted the Fix8898 branch May 23, 2017 00:53
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fix putArgStk dstCount and ConsumeReg errors

Commit migrated from dotnet/coreclr@b775947
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants