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

Add autovectorizer support for subword vector casts

XMLWordPrintable

      In the following example:

      for (int i = 0; i < SIZE; i++) {
        shorts[i] = (short)ints[i];
      }

      Currently, we cannot vectorize this loop because there is a LoadI->StoreC chain, which results in the packs being discarded at the profitability step due to the velt size difference. However, we have existing vector cast nodes (VectorCastI2X, VectorCastS2X, VectorCastB2X) that could be generated to change the shape of the graph when a size conflict is detected, rather than discarding the packs entirely.

            jkarthikeyan Jasmine Karthikeyan
            jkarthikeyan Jasmine Karthikeyan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: