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

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: