637 if (C->cfg() != NULL) { |
637 if (C->cfg() != NULL) { |
638 // once we have a CFG there are some nodes that aren't really |
638 // once we have a CFG there are some nodes that aren't really |
639 // reachable but are in the CFG so add them here. |
639 // reachable but are in the CFG so add them here. |
640 for (uint i = 0; i < C->cfg()->number_of_blocks(); i++) { |
640 for (uint i = 0; i < C->cfg()->number_of_blocks(); i++) { |
641 Block* block = C->cfg()->get_block(i); |
641 Block* block = C->cfg()->get_block(i); |
642 for (uint s = 0; s < block->_nodes.size(); s++) { |
642 for (uint s = 0; s < block->number_of_nodes(); s++) { |
643 nodeStack.push(block->_nodes[s]); |
643 nodeStack.push(block->get_node(s)); |
644 } |
644 } |
645 } |
645 } |
646 } |
646 } |
647 |
647 |
648 while(nodeStack.length() > 0) { |
648 while(nodeStack.length() > 0) { |