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
8252188: Crash in OrINode::Ideal(PhaseGVN*, bool)+0x8b9 #262
Conversation
|
@vnkozlov The following label will be automatically applied to this pull request: When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the |
/reviewer credit thartmann |
@vnkozlov |
@vnkozlov |
/reviewer credit jbhateja |
@vnkozlov |
@vnkozlov This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements After integration, the commit message will be:
Since the source branch of this PR was last updated there have been 2 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge
|
/integrate |
@vnkozlov Since your change was applied there have been 2 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 1438ce0. |
Code added by 8248830 uses Node::is_Con() check when looking for constant shift values.
Unfortunately it does not guarantee that it will be Integer constant because TOP node is also ConNode. I used C2 types to check and get shift values. I also refactor code to consolidate checks.
Method degenerate_vector_rotate() in vectornode.cpp has is_Con() check and, in general, it could be TOP because we do loop optimizations after vectorization. I added isa_int() check and treat 'cnt' in other case as variable to do transformation on 'else' branch and let sub-graph collapse there. I also refactor degenerate_vector_rotate() to make it compact.
I removed OrVNode::Ideal() method added by 8248830 because it is currently not used (it is for Vector API). And its code is convoluted and does not match code in OrINode::Ideal().
I moved Rotate vectorization tests into new test files TestIntVectRotate.java and TestLongVectRotate.java and added more tests methods for which vectors are created.
Tested: tier1, hs-tier2, hs-tier3.
Verified fix with replay file from bug report.
I also checked that RotateBenchmark.java added by 8248830 still creates Rotate vectors after this fix.
I created subtask to add new regerssion test later because this fix is urgent and I did not have time to prepare it.
The fix was already reviewed on mailing list https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2020-September/039886.html
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/262/head:pull/262
$ git checkout pull/262