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

Add vectorized implementation for VectorMask.andNot()

    XMLWordPrintable

    Details

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

      Description

      Currently "VectorMask.andNot" is not vectorized:
           public VectorMask<E> andNot(VectorMask<E> m) {
              // FIXME: Generate good code here.
              return bOp(m, (i, a, b) -> a && !b);
          }

      This can be implemented with calling the "and(m.not())" instead. Since "and()/not()" have been intrinsified that can be vectorized in hotspot, directly calling them can make this function be vectorized as well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xgong Xiaohong Gong
              Reporter:
              xgong Xiaohong Gong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: