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.

            Assignee:
            Roland Westrelin
            Reporter:
            Roland Westrelin
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: