View | Details | Raw Unified | Return to bug 469742
Collapse All | Expand All

(-)mini/method-to-ir.c (-1 / +2 lines)
Lines 4979-4985 Link Here
4979
{
4979
{
4980
	MonoInst *ins;
4980
	MonoInst *ins;
4981
	guint32 opcode = mono_type_to_regmove (cfg, header->locals [n]);
4981
	guint32 opcode = mono_type_to_regmove (cfg, header->locals [n]);
4982
	if ((opcode == OP_MOVE) && ((sp [0]->opcode == OP_ICONST) || (sp [0]->opcode == OP_I8CONST))) {
4982
	if ((opcode == OP_MOVE) && cfg->cbb->last_ins == sp [0]  &&
4983
			((sp [0]->opcode == OP_ICONST) || (sp [0]->opcode == OP_I8CONST))) {
4983
		/* Optimize reg-reg moves away */
4984
		/* Optimize reg-reg moves away */
4984
		/* 
4985
		/* 
4985
		 * Can't optimize other opcodes, since sp[0] might point to
4986
		 * Can't optimize other opcodes, since sp[0] might point to

Return to bug 469742