CountedLoopEndNode::phi() should only return PhiNodes

XMLWordPrintable

      CountedLoopEndNode::phi() currently does not check if the node is a PhiNode and may therefore return other nodes (see JDK-8134739). We should change the implementation to always either return a PhiNode or NULL (use tmp->in(1)->as_Phi()) and adapt the call sites accordingly. For example, PhiNode::Value() currently expects phi() to return "something" even if the loop does not contain a PhiNode.

            Assignee:
            Tobias Hartmann
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: