C2: Optimize RegMask::is_bound

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: hotspot
    • b27

      Improve the various RegMask::is_bound method performance by avoiding Size() and adding a quick drain loop after finding the bit/pair/set we're looking for.

      This optimize RegMask::is_bound by ~2x, and the other components are inlined in various places so the improvement adds up to about an 1% improvement on C2Compiler::initialize()

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

              Created:
              Updated:
              Resolved: