-
Notifications
You must be signed in to change notification settings - Fork 6k
8278471: Remove unreached rules in AddNode::IdealIL #6752
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
8278471: Remove unreached rules in AddNode::IdealIL #6752
Conversation
👋 Welcome back CptGit! A progress list of the required criteria for merging this PR into |
@CptGit this pull request can not be integrated into git checkout reorder-optimizations-in-addnode-ideal
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
78b8f67
to
3fb1e7b
Compare
related JBS issue - https://bugs.openjdk.java.net/browse/JDK-8278471 |
Webrevs
|
We actually don't need those since jdk/src/hotspot/share/opto/subnode.cpp Line 256 in 10a51fd
|
Thank you for pointing this out! I have two questions:
Thank you very much! |
Hi, I think just deleting those 2 should be okay. Regarding idealisation, if you look into jdk/src/hotspot/share/opto/phaseX.cpp Line 828 in ccdb9f1
|
Thank you so much for answering both my questions! |
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.
LGTM
The removed rules actually never be reached before.
So removing them won't make performance any worse.
And the removed opts are already done by (AddNode::IdealIL + SubINode::Ideal).
However, it would be better to change the JBS title as something like 'Remove unreached rules in AddNode::IdealIL'
Thanks.
@CptGit 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 63 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@DamonFool, @vnkozlov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Thank you for your review. @DamonFool Would you mind making the change to JBS for me? I don't have an account there, so I am not able to edit. Thanks. |
The JBS title had been updated. |
/integrate |
Hi @CptGit , you need at least two reviews for hotspot changes. |
It thought it can be integrated since the bot told me.Thanks for letting me know the requirement. |
/reviewers 2 reviewer |
@DamonFool Now we have the command reviewers to change the number of the required reviewers. Hope more developers know this. |
Nice! /reviewers 2 reviewer |
@DamonFool Usage: |
/reviewers 2 |
@CptGit |
@DamonFool Unfortunately, it seems that you meet a bug. I filed SKARA-1288 to follow up. |
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.
Before you integrate this, please, add IR framework test which checks that conversions are really happened. Especially ones you removed.
Thanks a lot @vnkozlov for the suggestion of IR test. I added a test and found long type not working. Then I realized "long" did not have two conversions as "int" so I added them. These IR tests helped! Thank you! |
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.
Good.
/integrate |
/sponsor |
Going to push as commit f6fbb5a.
Your commit was automatically rebased without conflicts. |
@DamonFool @CptGit Pushed as commit f6fbb5a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Reorder optimizations in addnode so special cases appear before general cases; otherwise the special cases would be never covered.
(a - b) + (c - d)
subsumes both(a - b) + (b - c)
and(a - b) + (c - a)
. Therefore(a - b) + (b - c)
and(a - b) + (c - a)
have to be placed before(a - b) + (c - d)
so that they can work.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6752/head:pull/6752
$ git checkout pull/6752
Update a local copy of the PR:
$ git checkout pull/6752
$ git pull https://git.openjdk.java.net/jdk pull/6752/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6752
View PR using the GUI difftool:
$ git pr show -t 6752
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6752.diff