equal
deleted
inserted
replaced
698 |
698 |
699 |
699 |
700 //------------------------------is_unreachable--------------------------------- |
700 //------------------------------is_unreachable--------------------------------- |
701 bool Node::is_unreachable(PhaseIterGVN &igvn) const { |
701 bool Node::is_unreachable(PhaseIterGVN &igvn) const { |
702 assert(!is_Mach(), "doesn't work with MachNodes"); |
702 assert(!is_Mach(), "doesn't work with MachNodes"); |
703 return outcnt() == 0 || igvn.type(this) == Type::TOP || in(0)->is_top(); |
703 return outcnt() == 0 || igvn.type(this) == Type::TOP || (in(0) != NULL && in(0)->is_top()); |
704 } |
704 } |
705 |
705 |
706 //------------------------------add_req---------------------------------------- |
706 //------------------------------add_req---------------------------------------- |
707 // Add a new required input at the end |
707 // Add a new required input at the end |
708 void Node::add_req( Node *n ) { |
708 void Node::add_req( Node *n ) { |