summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-11 02:15:24 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-11 02:15:24 +0000
commit081e528ab21446b3552b39d9fd9341b0ac6ec4e7 (patch)
tree45308ebcdef9bd8e1c37de063a378b2b3968b0ff /gcc/reload1.c
parent2faf8f38e924de4bfb8a6d8bc050be008d173a33 (diff)
downloadgcc-081e528ab21446b3552b39d9fd9341b0ac6ec4e7.tar.gz
* reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index adae5c8a162..159a88db232 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -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))