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: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-05
  • Updated: 2025-04-10
  • Resolved: 2025-03-13
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.
JDK 25
25 b15Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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
Changeset: 4e51a8c9 Branch: master Author: Galder ZamarreƱo <galder@openjdk.org> Date: 2025-03-13 13:53:54 +0000 URL: https://git.openjdk.org/jdk/commit/4e51a8c9ad4e5345d05cf32ce1e82b7158f80e93
13-03-2025

Commit 40 / v08: bash submitTesting.sh 20098 tier1,tier2,tier3,tier4,hs-comp-stress,hs-precheckin-comp https://mach5.us.oracle.com/mdash/jobs/emanuel-jdk-review-20250114-0847-22234692 Commit 47 / v13: bash submitTesting.sh 20098 tier1,tier2,tier3,tier4,hs-comp-stress,hs-precheckin-comp https://mach5.us.oracle.com/mdash/jobs/emanuel-jdk-review-20250307-0648-24642810
07-03-2025

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