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

New addnode ideal optimization: converting "x + x" into "x << 1"

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 19
    • 18
    • hotspot
    • b04
    • generic
    • generic

    Description

      A DESCRIPTION OF THE PROBLEM :
      A new ideal optimization can be introduced for addnode: converting "x + x" into "x << 1".

      // Convert "x + x" into "x << 1"
      if (in1 == in2) {
        return new LShiftINode(in1, phase->intcon(1));
      }

      Will submit a pull request associated with this.


      Attachments

        Issue Links

          Activity

            People

              kvn Vladimir Kozlov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: