RVM
  1. RVM
  2. RVM-260

Expression folding on expressions with register on RHS

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1000
    • Component/s: Compiler: Optimizing
    • Labels:
      None
    • Number of attachments :
      0

      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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: