comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CompressionNode.java @ 15370:319deee16746

add support for matching multiple HIR nodes when lowering to LIR
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 24 Apr 2014 12:00:54 -0700
parents 61363577a184
children 589c3627fab8 a71192a503fe
comparison
equal deleted inserted replaced
15369:24d4b669756e 15370:319deee16746
91 break; 91 break;
92 } 92 }
93 throw GraalInternalError.shouldNotReachHere(); 93 throw GraalInternalError.shouldNotReachHere();
94 } 94 }
95 95
96 public ValueNode getInput() {
97 return input;
98 }
99
96 @Override 100 @Override
97 public Node canonical(CanonicalizerTool tool) { 101 public Node canonical(CanonicalizerTool tool) {
98 if (input instanceof CompressionNode) { 102 if (input instanceof CompressionNode) {
99 CompressionNode other = (CompressionNode) input; 103 CompressionNode other = (CompressionNode) input;
100 if (op != other.op && encoding.equals(other.encoding)) { 104 if (op != other.op && encoding.equals(other.encoding)) {