@Override public void simplifyOperands(Map<Operand, Operand> valueMap) { super.simplifyOperands(valueMap); Operand v = valueMap.get(getArg()); // SSS FIXME: Dumb design leaking operand into IRScopeImpl -- hence this setting going on here. // Fix it! if (v != null) method.setContainer(v); }
@Override public void simplifyOperands(Map<Operand, Operand> valueMap) { super.simplifyOperands(valueMap); // Simplify the variables too -- to keep these variables in sync with what is actually used in // the when clauses // This is not required for correctness reasons, but only for performance reasons. for (int i = 0; i < variables.length; i++) { variables[i] = variables[i].getSimplifiedOperand(valueMap); } }