hotspot/src/share/vm/opto/loopUnswitch.cpp
changeset 27707 f7d26e5b8b5d
parent 24923 9631f7d691dc
child 31772 718fc367468d
equal deleted inserted replaced
27706:3f10f4ac2bd6 27707:f7d26e5b8b5d
    59     return false;
    59     return false;
    60   }
    60   }
    61   if (!_head->is_Loop()) {
    61   if (!_head->is_Loop()) {
    62     return false;
    62     return false;
    63   }
    63   }
    64   uint nodes_left = MaxNodeLimit - phase->C->live_nodes();
    64   int nodes_left = phase->C->max_node_limit() - phase->C->live_nodes();
    65   if (2 * _body.size() > nodes_left) {
    65   if ((int)(2 * _body.size()) > nodes_left) {
    66     return false; // Too speculative if running low on nodes.
    66     return false; // Too speculative if running low on nodes.
    67   }
    67   }
    68   LoopNode* head = _head->as_Loop();
    68   LoopNode* head = _head->as_Loop();
    69   if (head->unswitch_count() + 1 > head->unswitch_max()) {
    69   if (head->unswitch_count() + 1 > head->unswitch_max()) {
    70     return false;
    70     return false;