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

Use a RegSet to simplify assert_different_registers()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 20
    • 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.

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

              Created:
              Updated:
              Resolved: