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

AARCH64: more L2I conversions can be skipped

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      aarch64

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: