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

Re-associate loop invariants with other associative operations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b11

      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.

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

              Created:
              Updated:
              Resolved: