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

Re-associate loop invariants with other associative operations

    Details

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

      Description

      Even the C2 compiler has "reassociate_invariants" for 32-bits integer add/sub operations, compared with the Graal compiler, it misses a part of re-associations for other associative binary operations like "multiply" and logic (and/or/xor) with integer type.

      It might be worth adding the missing part for the C2 compiler.

        Attachments

          Activity

            People

            • Assignee:
              xgong Xiaohong Gong
              Reporter:
              xgong Xiaohong Gong
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: