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

C2: Refactor uses of "PhaseValue::*con*() + PhaseIdealLoop::set_ctrl()" into separate method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • hotspot

      There are many uses of:

      node = intcon(x);
      set_ctrl(node, C->root())

      We should introduce a new method PhaseIdealLoop::intcon which is a wrapper that calls PhaseValue::intcon() and sets control to root. Then we do not need to worry about setting control which can easily be forgotten as for example in JDK-8343137.

            tweidmann Theo Weidmann
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: