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

C2: Implement bitwise constant propagation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 14
    • 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).

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

              Created:
              Updated: