frequency based block layout

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • hs14
    • Affects Version/s: hs14
    • Component/s: hotspot
    • b07
    • generic
    • generic

        The server compiler currently computes block frequencies based on branch estimates and probabilities collected from profiling data.

        The frequency data can be leveraged create a block layout that:
          - reduces the number of branches emitted
          - improves icache locality
          - rotates loops to end with a conditional branch
          - naturally moves uncommon code sequences out of line without using an arbitrary frequency cutoff

        While only modest improvement in performance should be expected, a reduction in the methods for which "spaghetti code" is emitted, should make assembly code more readable.

              Assignee:
              Chuck Rasbold
              Reporter:
              Chuck Rasbold
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: