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

Optimize conversions duplicated across phi nodes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • hotspot
    • b20

      In the case that the IR contains patterns such as "Phi(ConvX2Y(A), ConvX2Y(B))", the convert that is duplicated can be pulled after the phi. This would lead to the resultant IR "ConvX2Y(Phi(A, B))" which is more compact.

      This pattern is fairly widespread as it is fairly easy to generate in user code. It's also generated when a new array with a non-constant size is created, so this transformation would be pretty widely applicable.

            jkarthikeyan Jasmine Karthikeyan
            jkarthikeyan Jasmine Karthikeyan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: