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

SuperWord should vectorize reverse-order reduction loops

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot

      Reverse-order reduction loops seem to to be vectorized.

      Reproduce with attached file - swap between increment and decrement loop:
      java -XX:-TieredCompilation -Xbatch -XX:CompileCommand=compileonly,Test::test -XX:+TraceSuperWord -XX:+TraceNewVectors Test.java

      Maybe it is as simple as allowing reductions to go in both directions in "SuperWord::reduction".
      Currently, we only seem to allow s1 to be input of s2, and not the other way around.

            epeter Emanuel Peter
            epeter Emanuel Peter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: