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

Fix statement insertion point in GT_STORE_LCL_VAR decomposition#5923

Merged
cmckinsey merged 2 commits into
dotnet:masterfrom
mikedn:x86-store-lclvar
Jun 24, 2016
Merged

Fix statement insertion point in GT_STORE_LCL_VAR decomposition#5923
cmckinsey merged 2 commits into
dotnet:masterfrom
mikedn:x86-store-lclvar

Conversation

@mikedn
Copy link
Copy Markdown

@mikedn mikedn commented Jun 22, 2016

In some cases a newly created statement is inserted between the current statement and its embedded statements instead of being inserted after the current statement and its embedded statements.

Fixes #5696

In addition to the fix itself I reorganized the code to be similar to the code used by @sejongoh in #5380. We should be able to extract a common function from this when the decomposition story is in a better shape.

In some cases a newly created statement is inserted between the current statement and its embedded statements instead of being inserted after the current statement and its embedded statements.
@cmckinsey
Copy link
Copy Markdown

/cc @dotnet/jit-contrib

Mike, does it make sense to add the test case from #5696 as a regression test along with this fix?

@mikedn
Copy link
Copy Markdown
Author

mikedn commented Jun 22, 2016

Mike, does it make sense to add the test case from #5696 as a regression test along with this fix?

Yep, I'll add it. I forgot that I specifically wrote it to avoid problems with x86 casts and thought that it would fail despite this fix.

@pgavlin
Copy link
Copy Markdown

pgavlin commented Jun 22, 2016

LGTM.

@cmckinsey
Copy link
Copy Markdown

Thanks for adding the test case.

@cmckinsey cmckinsey merged commit b1aa2c1 into dotnet:master Jun 24, 2016
@mikedn mikedn deleted the x86-store-lclvar branch April 10, 2017 05:50
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fix statement insertion point in GT_STORE_LCL_VAR decomposition

Commit migrated from dotnet/coreclr@b1aa2c1
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.

RyuJIT x86: GT_STORE_LCL_VAR decomposition can generate wrong IR

4 participants