From 5af9117152b00cbffcaff7b74c2a98536d8de1e6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 5 Jul 1994 16:59:42 -0400 Subject: [PATCH] (try_combine): If I2DEST was used in I2SRC, it isn't unused just because there is no SET for I2 anymore. From-SVN: r7653 --- gcc/combine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 38dca46f704..0cd1ee879ae 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2262,7 +2262,7 @@ try_combine (i3, i2, i1) /* If the reg formerly set in I2 died only once and that was in I3, zero its use count so it won't make `reload' do any work. */ - if (! added_sets_2 && newi2pat == 0) + if (! added_sets_2 && newi2pat == 0 && ! i2dest_in_i2src) { regno = REGNO (i2dest); reg_n_sets[regno]--; @@ -2286,7 +2286,7 @@ try_combine (i3, i2, i1) record_value_for_reg (i1dest, i1_insn, i1_val); regno = REGNO (i1dest); - if (! added_sets_1) + if (! added_sets_1 && ! i1dest_in_i1src) { reg_n_sets[regno]--; if (reg_n_sets[regno] == 0 -- 2.34.1