C2: Implement bitwise constant propagation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 14
    • Component/s: hotspot

      In type.[ch]pp, to TypeInt and TypeLong, add bitwise constant information.

      Specifically, in addition to arithmetic upper and lower bounds _hi and _lo, add bitwise upper and lower bounds, _up and _dn.

      Push this information through TypePtr offsets, to track alignment information.

      Use this information to help decide if ALU operations can be strength reduced.

      The bit equations can be derived with some thought. A working Java prototype is attached (creation date is 4/18/2007, by jrose).

            Assignee:
            Unassigned
            Reporter:
            John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: