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 an assert in OMR::Power::TreeEvaluator::s2iEvaluator() #6611

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

klangman
Copy link
Contributor

The s2iEvaluator uses a isLoad() test when deciding between a simple
sign extend or generating a load sequence. The isLoad() test returns
true for both LoadVar and LoadConst cases and therefore we can get
into the load sequence when handling a sconst node child which results
in an assert. This PR will change isLoad() to isLoadVar() so that
the sconst case will use the simple sign extend path.

Signed-off-by: Kevin Langman langman@ca.ibm.com

The s2iEvaluator uses a isLoad() test when deciding between a simple
sign extend or generating a load sequence. The isLoad() test returns
true for both LoadVar and LoadConst cases and therefore we can get
into the load sequence when handling a sconst node child which results
in an assert. This PR will change isLoad() to isLoadVar() so that
the sconst case will use the simple sign extend path.

Signed-off-by: Kevin Langman <langman@ca.ibm.com>
Copy link
Contributor

@zl-wang zl-wang left a comment

Choose a reason for hiding this comment

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

Looks good ...

@0xdaryl
Copy link
Contributor

0xdaryl commented Jul 15, 2022

Jenkins build plinux,aix

@0xdaryl 0xdaryl self-assigned this Jul 15, 2022
@0xdaryl 0xdaryl merged commit edf2ae5 into eclipse:master Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants