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

C2: vectorization fails on some simple Memory Segment loops

XMLWordPrintable

    • b18

      This showed up with some panama benchmarks:
      The following code snippet is not vectorized:

          public static void testByteLong1(byte[] dest, long[] src) {
              for (int i = 0; i < src.length; i++) {
                  long j = Objects.checkIndex(i * 8, (long)(src.length * 8));
                  UNSAFE.putLongUnaligned(dest, baseOffset + j, src[i]);
              }
          }

            roland Roland Westrelin
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: