src/hotspot/share/opto/mulnode.cpp
changeset 51050 96ea37459ca7
parent 47765 b7c7428eaab9
child 52632 1089e8fd8439
equal deleted inserted replaced
51049:70295a56c207 51050:96ea37459ca7
    45 }
    45 }
    46 
    46 
    47 //------------------------------Identity---------------------------------------
    47 //------------------------------Identity---------------------------------------
    48 // Multiplying a one preserves the other argument
    48 // Multiplying a one preserves the other argument
    49 Node* MulNode::Identity(PhaseGVN* phase) {
    49 Node* MulNode::Identity(PhaseGVN* phase) {
    50   register const Type *one = mul_id();  // The multiplicative identity
    50   const Type *one = mul_id();  // The multiplicative identity
    51   if( phase->type( in(1) )->higher_equal( one ) ) return in(2);
    51   if( phase->type( in(1) )->higher_equal( one ) ) return in(2);
    52   if( phase->type( in(2) )->higher_equal( one ) ) return in(1);
    52   if( phase->type( in(2) )->higher_equal( one ) ) return in(1);
    53 
    53 
    54   return this;
    54   return this;
    55 }
    55 }