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

VectorAPI rotate operation optimization

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic

      Description

      Current VectorAPI Java side implementation expresses rotateLeft and rotateRight operations using following operations:-

          vec1 = lanewise(VectorOperators.LSHL, n)
          vec2 = lanewise(VectorOperators.LSHR, n)
          res = lanewise(VectorOperations.OR, vec1 , vec2)

      To move this handling from Java side to C2 compiler side which currently facilitates dismantling the rotate operation into above operations if target ISA does not support a direct rotate instruction.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jbhateja Jatin Bhateja
              Reporter:
              jbhateja Jatin Bhateja
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: