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

C2: remove useless code in PhaseIdealLoop::place_outside_loop() after 8335709

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b13

      @@ -1272,9 +1272,7 @@ Node* PhaseIdealLoop::place_outside_loop(Node* useblock, IdealLoopTree* loop) co
         // Pick control right outside the loop
         for (;;) {
           Node* dom = idom(useblock);
      - if (loop->is_member(get_loop(dom)) ||
      - // NeverBranch nodes are not assigned to the loop when constructed
      - (dom->is_NeverBranch() && loop->is_member(get_loop(dom->in(0))))) {
      + if (loop->is_member(get_loop(dom))) {
             break;
           }
           useblock = dom;

            roland Roland Westrelin
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: