reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's patch.

* reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
patch.

From-SVN: r66677
This commit is contained in:
Alexandre Oliva 2003-05-11 02:15:24 +00:00 committed by Alexandre Oliva
parent 59650e480e
commit 6e5d72baac
2 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2003-05-10 Alexandre Oliva <aoliva@redhat.com>
* reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
patch.
2003-05-10 Zack Weinberg <zack@codesourcery.com>
* diagnostic.c: Reorder functions for clarity, putting all the

View File

@ -9259,15 +9259,9 @@ reload_cse_move2add (first)
int success = 0;
if (new_src == const0_rtx)
{
if (INTVAL (src) == reg_offset [regno])
/* See above why we create (set (reg)
(reg)) here. */
success
= validate_change (next, &SET_SRC (set), reg, 0);
else
success = 0;
}
/* See above why we create (set (reg) (reg)) here. */
success
= validate_change (next, &SET_SRC (set), reg, 0);
else if ((rtx_cost (new_src, PLUS)
< COSTS_N_INSNS (1) + rtx_cost (src3, SET))
&& have_add2_insn (reg, new_src))