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

vectorize sum of arrays's elements loop

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: hs23, 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Changes for 6340864 (add vectorized arithmetic) will not vectorize sum of arrays's elements loop:

      int x = 0;
      int[] a = new int[10000];
      for(int i=0; i < a.length; i++) {
        x += a[i];
      }

      This RFE is filed to implement it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kvn Vladimir Kozlov
                Reporter:
                kvn Vladimir Kozlov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: