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

VectorAPI: Optimize the VectorMaskCast chain in specific patterns

XMLWordPrintable

    • generic
    • generic

      The VectorMaskCast node chain can be eliminated in specific patterns, like
      `(VectorStoreMask (VectorMaskCast ... (VectorLoadMask x))) => (x)`

      And

      `(VectorMaskCast (VectorMaskCast  ... (VectorMaskCast x))) => (x)`

      Eliminate these VectorMaskCast chain benefits Java codes like:
      ```
      public static int foo() {
        VectorMask<Float> m = VectorMask.fromArray(FloatVector.SPECIES_MAX, ma, 0);
        return m.lastTrue();
      }
      ```

            erfang Eric Fang
            erfang Eric Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: