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

Add vectorized implementation for VectorMask.eq()

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • b25

    Description

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

      This can be implemented with calling the "xor(m.not())" instead. Since "xor()/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

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

              Dates

                Created:
                Updated:
                Resolved: