Don't generate duplicated CMP for float/double values

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • hs12
    • Affects Version/s: hs12
    • Component/s: hotspot
    • b02
    • sparc
    • solaris_10
    • Not verified

        C2 has optimization which replaces diamond graphs with CMove
        (method PhaseIdealLoop::conditional_move()).
        Each CMove instruction has own Cmp instruction to produce condition flags.
        But float/double Cmp is expensive and it would be better to use a diamond graph
        if we have more then one move.

              Assignee:
              Vladimir Kozlov
              Reporter:
              Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: