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

C2: optimization of mask checks in counted loops fail in the presence of cast nodes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • hotspot
    • b21

      This showed up when working with a panama micro benchmark. Optimization of:

      if ((base + (offset << 2)) & 3) != 0) {
      }

      into:

      if ((base & 3) != 0) {

      fails if the subgraph contains cast nodes.

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

              Created:
              Updated:
              Resolved: