VectorAPI rotate operation optimization

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 17
    • Component/s: hotspot
    • b08
    • generic

      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.

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

              Created:
              Updated:
              Resolved: