src/hotspot/share/opto/node.cpp
changeset 54327 a4d19817609c
parent 53220 c14b7b6a9b2f
child 54722 f0bce2f93e72
equal deleted inserted replaced
54326:eb7f2c367f73 54327:a4d19817609c
  1431   return (sum>>2) + _cnt + Opcode();
  1431   return (sum>>2) + _cnt + Opcode();
  1432 }
  1432 }
  1433 
  1433 
  1434 //------------------------------cmp--------------------------------------------
  1434 //------------------------------cmp--------------------------------------------
  1435 // Compare special parts of simple Nodes
  1435 // Compare special parts of simple Nodes
  1436 uint Node::cmp( const Node &n ) const {
  1436 bool Node::cmp( const Node &n ) const {
  1437   return 1;                     // Must be same
  1437   return true;                  // Must be same
  1438 }
  1438 }
  1439 
  1439 
  1440 //------------------------------rematerialize-----------------------------------
  1440 //------------------------------rematerialize-----------------------------------
  1441 // Should we clone rather than spill this instruction?
  1441 // Should we clone rather than spill this instruction?
  1442 bool Node::rematerialize() const {
  1442 bool Node::rematerialize() const {
  2450 }
  2450 }
  2451 #endif
  2451 #endif
  2452 uint TypeNode::hash() const {
  2452 uint TypeNode::hash() const {
  2453   return Node::hash() + _type->hash();
  2453   return Node::hash() + _type->hash();
  2454 }
  2454 }
  2455 uint TypeNode::cmp( const Node &n ) const
  2455 bool TypeNode::cmp( const Node &n ) const
  2456 { return !Type::cmp( _type, ((TypeNode&)n)._type ); }
  2456 { return !Type::cmp( _type, ((TypeNode&)n)._type ); }
  2457 const Type *TypeNode::bottom_type() const { return _type; }
  2457 const Type *TypeNode::bottom_type() const { return _type; }
  2458 const Type* TypeNode::Value(PhaseGVN* phase) const { return _type; }
  2458 const Type* TypeNode::Value(PhaseGVN* phase) const { return _type; }
  2459 
  2459 
  2460 //------------------------------ideal_reg--------------------------------------
  2460 //------------------------------ideal_reg--------------------------------------