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

Don't generate duplicated CMP for float/double values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • hs12
    • hs12
    • 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: