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

Re-associate loop invariants with other associative operations

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: