Use a RegSet to simplify assert_different_registers()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: hotspot
    • generic
    • generic

      assert_different_registers() uses an O(N**2) algorithm. We can use a RegSet instead.
      This has two advantages:
      1. It's faster in all but the most trivial cases.
      2. It can be fully constant folded, so in cases where all of the arguments are constant no code at all will be generated.

            Assignee:
            Andrew Haley
            Reporter:
            Andrew Haley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: