Commit 6e7727eb by Eric Botcazou Committed by Richard Henderson

expr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands explicitly.

        * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
        check for zero operands explicitly.

From-SVN: r58623
parent 02c6a17a
2002-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
* expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
check for zero operands explicitly.
2002-10-29 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.md (extv, extzv, insv): Set size of referenced
......
......@@ -7912,9 +7912,10 @@ expand_expr (exp, target, tmode, modifier)
{
op0 = expand_expr (TREE_OPERAND (exp, 0), subtarget, VOIDmode, 0);
op1 = expand_expr (TREE_OPERAND (exp, 1), NULL_RTX, VOIDmode, 0);
temp = simplify_binary_operation (PLUS, mode, op0, op1);
if (temp)
return temp;
if (op0 == const0_rtx)
return op1;
if (op1 == const0_rtx)
return op0;
goto binop2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment