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

C2: Use TypeInt/Long::contains(0) instead of _lo/_hi based checks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • hotspot

      There are several places around div and mod nodes where we check for type->_hi < 0 || type->_lo > 0 to e.g. remove control inputs when no div by zero can happen. Using the contains method is more precise: It also checks unsigned ranges and will also return false if any bit is known to be 1.

            hgreule Hannes Greule
            hgreule Hannes Greule
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: