summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
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))