Commit ab0b6581 by Torbjorn Granlund

(expand_divmod): Put OP0 in a register when computing

remainder, or when OP1 is constant.

From-SVN: r7628
parent e9c11411
...@@ -2680,9 +2680,10 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) ...@@ -2680,9 +2680,10 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
if (GET_CODE (op1) == MEM && MEM_VOLATILE_P (op1)) if (GET_CODE (op1) == MEM && MEM_VOLATILE_P (op1))
op1 = force_reg (compute_mode, op1); op1 = force_reg (compute_mode, op1);
#if 0 /* If we need the remainder or if OP1 is constant, we need to
op0 = force_reg (mode, op0); put OP0 in a register in case it has any queued subexpressions. */
#endif if (rem_flag || op1_is_constant)
op0 = force_reg (compute_mode, op0);
last = get_last_insn (); last = get_last_insn ();
......
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