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

Unrolling more when SLP auto-vectorization failed

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 10
    • 10
    • hotspot
    • b31
    • generic
    • linux

    Description

      For below Java code, which can't be auto-vectorized:
        public static void accessArrayConstants(int[] array) {
            for (int j = 0; j < 1024; j++) {
                array[0]++;
                array[1]++;
            }
        }
      Current C2 unrolls the loop to 8 times on X86 and 4 times on AArch64, which is limited by architecture's vector size. Get better performance, we should unroll more until reaching the unroll limitation.

      Attachments

        Issue Links

          Activity

            People

              zyao Zhongwei Yao
              zyao Zhongwei Yao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: