Skip to content
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 arm64 wrong multireg copies from reg to small type field in memory #46345

Merged
merged 4 commits into from
Dec 31, 2020

Conversation

sandreenko
Copy link
Contributor

Closes #46240

@sandreenko sandreenko added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 23, 2020
@sandreenko
Copy link
Contributor Author

Can anybody approve this?

@sandreenko sandreenko marked this pull request as draft December 24, 2020 19:34
@sandreenko
Copy link
Contributor Author

/azp run runtime-coreclr outerloop, runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@sandreenko sandreenko marked this pull request as ready for review December 29, 2020 03:53
@sandreenko
Copy link
Contributor Author

/azp run runtime-coreclr outerloop, runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@sandreenko
Copy link
Contributor Author

@AndyAyersMS I've changed the fix, please take another look. cc @dotnet/jit-contrib , @jkoritzinsky

src/coreclr/jit/instr.cpp Outdated Show resolved Hide resolved
// Notes:
// The fuctiuon currently does not expect float srcReg with integral dstType and will assert on such cases.
//
instruction CodeGenInterface::ins_Store(regNumber srcReg, var_types dstType, bool aligned /*=false*/)
Copy link
Member

Choose a reason for hiding this comment

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

Would prefer not to see overloads like this with optional parameters. Can we rename one or the other?

Copy link
Member

Choose a reason for hiding this comment

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

Also not clear to me why we don't just force all stores to use the version that does more checking...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I am thinking how to rename one of them now.

Also not clear to me why we don't just force all stores to use the version that does more checking...

It is possible but requires more refactoring changes, for example, emitInsStoreLcl and emitInsStoreInd should just receive GenTree* and calculate instruction ins, emitAttr attr inside. I will try to find time for this change later as a separate PR.

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

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

LGTM

@sandreenko sandreenko merged commit b6bc140 into dotnet:master Dec 31, 2020
@sandreenko sandreenko deleted the fixArm64MultiReg branch December 31, 2020 22:47
@danmoseley
Copy link
Member

did this fix #46278 ?

@sandreenko
Copy link
Contributor Author

did this fix #46278 ?

Yes, thanks for pointing this, I forgot to link that issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong multireg copies from reg to small type field in memory
3 participants