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

AArch64: more L2I conversions can be skipped

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      aarch64

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bulasevich Boris Ulasevich
                Reporter:
                bulasevich Boris Ulasevich
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: