equal
deleted
inserted
replaced
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 } |