Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-260

Expression folding on expressions with register on RHS

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1000
    • Component/s: Compiler: Optimizing
    • Labels:
      None

      Description

      Currently expression folding looks for operations such as:

      x = y op c1
      z = x op c2

      where c1 and c2 are constants. However, in some cases we can fold registers on the RHS, for example:

      x = y & a
      z = x & a

      can become:

      z = y & a

      also:

      x = y / a
      z = x / b

      can become:

      t = a * b
      z = y / t

      This replaces SF RFE tracker #1700396.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                ianrogers Ian Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: