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

x86_64: Improve fp comparison and cmove for eq/ne

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b24
    • x86

      - Fp comparison with eq/ne does not have to process ZF when both inputs of the comparison are the same.
      - CMove nodes lack the match rules for cmpOpUCF2, leading to those with eq/ne falling to cmpOpU, which has a really high overhead of fixing the flags.
      - Use Math.abs(v) == POSITIVE_INFINITY for Double/Float.isInfinite, which reduces 1 comparison and 1 branch.

            sviswanathan Sandhya Viswanathan
            qamai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: