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

C2: Devirtualize PhaseIterGVN-specific methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 16
    • 16
    • hotspot
    • b26

      PhaseValues define the virtual method is_IterGVN, which is trivially returning 0(!) for all types except those derived from PhaseIterGVN. Similarly there's igvn_rehash_node_delayed which is virtual and a no-op in base types, but implemented to call rehash_node_delayed in PhaseIterGVN.

      By devirtualizing we allow for more aggressive inlining and slightly better code generation in a few places.

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

              Created:
              Updated:
              Resolved: