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

[vectorapi] Vectorization for masked load with IOOBE with predicate feature

XMLWordPrintable

    • b26

      Add the vectorization support for masked load when there is out-of-bound exception like tail loop with predicate feature.

      Here is the current java implementation (FIXME: optimize part) which is not intrinsified:

          @ForceInline
          public static
          ByteVector fromArray(VectorSpecies<Byte> species,
                                         byte[] a, int offset,
                                         VectorMask<Byte> m) {
              ByteSpecies vsp = (ByteSpecies) species;
              if (offset >= 0 && offset <= (a.length - species.length())) {
                  return vsp.dummyVector().fromArray0(a, offset, m);
              }

              // FIXME: optimize
              checkMaskFromIndexSize(offset, vsp, m, 1, a.length);
              return vsp.vOp(m, i -> a[offset + i]);
          }

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

              Created:
              Updated:
              Resolved: