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

C2 should optimize if diamonds that feed into Phis merging the same value

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 12, 20
    • hotspot

      C2 should optimize the following code shape:

             If
            / \
         Proj Proj
           \ / [...]
            \ / /
            Region1
             |
             | x x y
              \ | | /
                Phi

      This optimization was added with JDK-8210215 for regions with 2 and 3 inputs but should be extended/replaced for the general case. See discussion in:
      http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-October/030834.html

            dfenacci Damon Fenacci
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: