-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8267982: Set the node after peephole optimization to be removed #4276
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
Conversation
|
👋 Welcome back sunny868! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
The PR title needs to match the JIRA bug title (including the bug number). Please also change it to something more descriptive (like the one you had previously). |
|
@TobiHartmann what I need to do ? |
|
I think Tobias was suggesting that you change both this PR's title and the JBS issue back to "8267982: Set the node after peephole optimization to be removed" |
vnkozlov
left a comment
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.
To have new flag field in base class Node is expensive (size wise). I suggest to add it to MachNode on which peephole is executed.
Otherwise the fix is correct.
|
/test tier1 |
|
I made a mistake operation . I will fix it right away. |
|
@TobiHartmann @vnkozlov can you help me ? I made a mistake to closed this PR, but now I can not re-open this PR. |
|
@sunny868 If you search for "reopen pull request after force push" you can find some helpful suggestions on how to fix this. From what I read, you need to do a another force push back to the previous PR state before it can be reopened. If all else fails, try opening a new PR. |
vnkozlov
left a comment
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. I have only style fix comment.
I will test changes meanwhile because I don't see it passed through GitHub testing.
| if ( def->is_Mach() && def->as_Mach()->get_removed() ) { | ||
| //do nothing. peephole has removed the node. | ||
| } else { | ||
| if( OptoReg::is_valid(first) ) set_live_bit(tmp_live,first); | ||
| if( OptoReg::is_valid(second) ) set_live_bit(tmp_live,second); | ||
| } |
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.
Code style. Use next pattern in code you modified (body on separate line and no spaces before/after condition):
if (cond) {
foo;
}
We want to correct style in all places eventually as we work on code.
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.
Done
vnkozlov
left a comment
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.
Tier1-3 testing passed clean.
|
|
@sunny868 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 593 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 (@vnkozlov, @TobiHartmann) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate |
|
@vnkozlov Could you please sponsor it for me? |
TobiHartmann
left a comment
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.
Otherwise, it looks good to me.
TobiHartmann
left a comment
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.
vnkozlov
left a comment
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.
Update is good.
|
/integrate |
|
@vnkozlov @TobiHartmann Could you please sponsor it for me? |
|
/sponsor |
|
Going to push as commit 2c883ee.
Your commit was automatically rebased without conflicts. |
|
@TobiHartmann @sunny868 Pushed as commit 2c883ee. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
Enable peephole can cause SIGSEGV sometimes in OopFlow::build_oop_map(Node*, int, PhaseRegAlloc*, int*)+0x238 , so must set a removed-flags for the peephole-nodes , to avoid be set-live-bit() and cause crash.
Please review this trivial change.
Thanks,
Sun Guoyun
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4276/head:pull/4276$ git checkout pull/4276Update a local copy of the PR:
$ git checkout pull/4276$ git pull https://git.openjdk.java.net/jdk pull/4276/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4276View PR using the GUI difftool:
$ git pr show -t 4276Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4276.diff