-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8345609: [C1] LIR Operations with one input should be implemented as LIR_Op1 #22582
Conversation
👋 Welcome back mdoerr! A progress list of the required criteria for merging this PR into |
@TheRealMDoerr 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 82 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 |
@TheRealMDoerr 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 /label pull request command. |
Webrevs
|
@@ -483,6 +489,7 @@ void LIR_OpVisitState::visit(LIR_Op* op) { | |||
|
|||
assert(op1->_info != nullptr, ""); do_info(op1->_info); | |||
if (op1->_opr->is_valid()) do_temp(op1->_opr); // safepoints on SPARC need temporary register | |||
assert(op1->_tmp->is_illegal(), "not used"); |
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.
I think safepoints should ideally be implemented as LIR_Op0. SPARC support is removed. We could file a new RFE for that.
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.
Well, a grep showed there are more leftovers of sparc and solaris in hotspot, but not a matter of this change.
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.
Nice cleanup 👍
A few files need copyright update // especially c1_LinearScan_x86.hpp ;)
Cheers, Richard.
Thanks for the review! Copyright headers are updated. |
You might even see an effect in the |
Yes. Added benchmark results to the description. |
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
Thanks for the review! |
Going to push as commit a21d21f.
Your commit was automatically rebased without conflicts. |
@TheRealMDoerr Pushed as commit a21d21f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
We have a large number of failures in our tier 2 (so far) CI after this was integrated, all with issues in the JIT. There is a crash in LIR_Assembler::negate
There are FP failures of different kinds
Sorry but this change will be backed out. |
Change
lir_sqrt
,lir_abs
,lir_neg
,lir_f2hf
,lir_hf2f
to useLIR_Op1
. ExtendLIR_Op1
to support one temp register operand. Also see JBS issue.Remove
lir_tan
andlir_log10
which are unused (dead and incomplete code). They should have been removed with or after ad79a5a and the corresponding changes on other platforms.The removal of the unnecessary float constant loads improves performance:
make run-test TEST="micro:Fp16ConversionBenchmark" MICRO="VM_OPTIONS=-XX:TieredStopAtLevel=1"
Power 10 without patch:
Power 10 with patch:
x64 machine without patch:
x64 machine with patch:
Testing: tier1-4 on x64 (Windows, linux, MacOS), aarch64 (linux, MacOS), ppc64 (linux, AIX)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22582/head:pull/22582
$ git checkout pull/22582
Update a local copy of the PR:
$ git checkout pull/22582
$ git pull https://git.openjdk.org/jdk.git pull/22582/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22582
View PR using the GUI difftool:
$ git pr show -t 22582
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22582.diff
Using Webrev
Link to Webrev Comment