JDK-8283091 : Support type conversion between different data sizes in SLP
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-03-14
  • Updated: 2022-09-26
  • Resolved: 2022-06-16
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 20
20 b03Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
After JDK-8275317, C2's SLP vectorizer has supported type conversion
between the same data size. We can also support conversions between
different data sizes like:
int <-> double
float <-> long
int <-> long
float <-> double

A typical test case:

int[] a;
double[] b;
for (int i = start; i < limit; i++) {
    b[i] = (double) a[i];
}
Comments
Changeset: a1795901 Author: Fei Gao <fgao@openjdk.org> Committer: Pengfei Li <pli@openjdk.org> Date: 2022-06-16 02:40:59 +0000 URL: https://git.openjdk.org/jdk/commit/a1795901ee292fa6272768cef2fedcaaf8044074
16-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7806 Date: 2022-03-14 08:18:25 +0000
14-03-2022