-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix test failure from #113051 #113128
Fix test failure from #113051 #113128
Conversation
Ensures GT_NEG -> GT_CAST contained by a comparison node forces the node being casted into a register during lowering, to avoid trying to generate code for an incompatible memory operation.
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
// cmn (extended-register): GT_EQ -> GT_NEG -> GT_CAST -> ... | ||
cast = op->gtGetOp1(); | ||
} | ||
if (cast) |
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.
nit: use curly braces
if (cast)
{
cast->AsCast()->CastOp()->ClearRegOptional();
}
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.
@snickolls-arm - I will let you fix this in subsequent PR
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.
LGTM
/ba-g infra issue dotnet/dnceng#5144 |
Ensures GT_NEG -> GT_CAST contained by a comparison node forces the node being casted into a register during lowering, to avoid trying to generate code for an incompatible memory operation.