-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8314580: PhaseIdealLoop::transform_long_range_checks fails with assert "was tested before" #15411
Conversation
👋 Welcome back roland! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
@rwestrel This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 116 new 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 this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too. Thank you for explaining the issue in details.
@chhagedorn @vnkozlov thanks for the reviews. |
/integrate |
Going to push as commit 9def453.
Your commit was automatically rebased without conflicts. |
For long counted loops,
PhaseIdealLoop::create_loop_nest()
firstgoes over the loop body to collect range checks, then transforms the
long counted loop into a loop nest and then goes over the list of
range checks it collected to transfrom them. For that last step,
PhaseIdealLoop::transform_long_range_checks()
needs to extract theparameters of the range check from the range check expression. It
should still recognize the range check expression even though the loop
was transformed in the meantime. That's what fails here. The reason is
that the range check expression uses the long loop increment as input
which, in the creation of the loop nest, is transformed to
outer phi + inner incr
. That breaks pattern matching of the range checkexpression. I propose removing the transformation:
entireley. After looking at this code again, I don't think it's
needed. The transformation:
should be all that's needed to correctly transform the loop.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15411/head:pull/15411
$ git checkout pull/15411
Update a local copy of the PR:
$ git checkout pull/15411
$ git pull https://git.openjdk.org/jdk.git pull/15411/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15411
View PR using the GUI difftool:
$ git pr show -t 15411
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15411.diff
Webrev
Link to Webrev Comment