JDK-8307513 : C2: intrinsify Math.max(long,long) and Math.min(long,long)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-05-05
  • Updated: 2024-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
As discussed in the recent reduction speedup work:
https://github.com/openjdk/jdk/pull/13056 JDK-8302652

We shoud intrinsify it, and keep a MaxL / MinL node in the graph.
In the backend, we can then use instructions, or revert back to
a compare and jump / CMoveL.

Benefit: SuperWord could vectorize MaxL/MinL. Probably generally leads to speedups.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20098 Date: 2024-07-09 12:07:37 +0000
09-07-2024