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

AArch64: more L2I conversions can be skipped

XMLWordPrintable

    • b08
    • aarch64

        https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/util/packed/DirectReader.java#L207
        public long get(long index) {
            int shift = (int) ((index + 1) & 1) << 2;

        On the following code the l2i conversion resist in machine code for aarch. It can be skipped with additional ADLC rule for the LShiftI(ConvL2I(AndL(smallmask))) template.

              bulasevich Boris Ulasevich
              bulasevich Boris Ulasevich
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: