Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8283091

Support type conversion between different data sizes in SLP

XMLWordPrintable

    • b03
    • generic
    • generic

      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];
      }

            fgao Fei Gao
            fgao Fei Gao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: