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

Commits on Jul 13, 2022

  1. Fix an assert in OMR::Power::TreeEvaluator::s2iEvaluator()

    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>
    klangman committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    bd5659e View commit details
    Browse the repository at this point in the history