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

Improve IndexSet iteration

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      A significant portion of work done during register allocation in C2 is iterating over IndexSets.

      A few small optimizations show a ~4% decrease in instructions retired by register allocation when instrumenting, and ~2-3% fewer instructions retired when running C2-heavy startup tests.

      The biggest improvement comes from avoiding iterating over empty sets altogether. A smaller improvement from adding a water mark to avoid iterating over all the blocks in the IndexSet.

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: