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

Move lowering of ArrayStoreCHK to lowerTreesPreChildrenVisit #10220

Merged

Conversation

hzongaro
Copy link
Member

Lowering of ArrayStoreCHK depends on its source and destination operands. However, compression/decompression of those child operands might be performed by lowering afterwards, leaving the lowered ArrayStoreCHK trees in an incomplete state.

Fixed this by moving the call to lowerArrayStoreCHK into lowerTreesPreChildrenVisit, to ensure compression sequences are generated afterwards. This also eliminates the need for the findArrayStoreCHKOperands method, which was attempting to perform pattern matching of the ArrayStoreCHK tree after compression/decompression had been applied to its operands.

Signed-off-by: Henry Zongaro zongaro@ca.ibm.com

Lowering of ArrayStoreCHK depends on its source and destination
operands.  However, compression/decompression of those child operands
might be performed by lowering afterwards, leaving the lowered
ArrayStoreCHK trees in an incomplete state.

Fixed this by moving the call to lowerArrayStoreCHK into
lowerTreesPreChildrenVisit, to ensure compression sequences are
generated afterwards.  This also eliminates the need for the
findArrayStoreCHKOperands method, which was attempting to perform
pattern matching of the ArrayStoreCHK tree after compression/
decompression had been applied to its operands.

Signed-off-by:  Henry Zongaro <zongaro@ca.ibm.com>
@hzongaro
Copy link
Member Author

Andrew @andrewcraik, may I ask you to review this change?

Leo @Leonardo2718, @a7ehuo Annabelle: FYI

Copy link
Contributor

@Leonardo2718 Leonardo2718 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@andrewcraik andrewcraik self-assigned this Jul 24, 2020
@andrewcraik andrewcraik added bug comp:jit project:valhalla Used to track Project Valhalla related work labels Jul 24, 2020
@andrewcraik
Copy link
Contributor

Jenkins test sanity all jdk14

@andrewcraik andrewcraik merged commit 05f3638 into eclipse-openj9:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug comp:jit project:valhalla Used to track Project Valhalla related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants