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

[lworld] [lw3] C1 should avoid copying element of flattened arrays when reading a sub-element

XMLWordPrintable

      Currently, when accessing elements of a flattened array, the code generated by C1 always make a copy of the element, even if in sub-sequent code, only single field of this element is needed.

      C1 could detect aaload/getfield* bytecodes sequences and generate direct access to the sub-element, avoiding unnecessary copies of intermediate values.

            fparain Frederic Parain
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: