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

C2 MergeStores: move process_for_merge_stores_igvn after allocation elimination

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • hotspot

      We saw in JDK-8370405, that MergeStores introduces mismatched stores, and that prevents allocation removal.

      As a quick-fix, we could just move process_for_merge_stores_igvn to a later point.

      This would allow allocation elimination to have a chance to work. And if it still fails, we can still do MergeStores.

      Long-term, we might want to allow allocation elimination to deal with some mismatched stores.

      We might also want to refactor MergeStores and the eventual MergeLoads JDK-8345485 not to work with IGVN, and so work even later. But that is more work, and we can do that later.

            epeter Emanuel Peter
            epeter Emanuel Peter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: