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

C2: optimize out more redundant conditions

XMLWordPrintable

      In patterns like:

      if (i >= 42) {
        if (i < 10) {

      the second test is not optimized out.
      This is also related to JDK-8272562 where a CastII optimizes to top on a branch that's never taken but optimized out.

            roland Roland Westrelin
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: