From 4090a6b33d502fbee5098555aca7d907e464f204 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 10 Dec 1992 12:45:01 -0500 Subject: [PATCH] (get_last_value): Never use value from later insn, even if reg is only set once. From-SVN: r2856 --- gcc/combine.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/combine.c b/gcc/combine.c index 8d1a845ffef..9632ab294a2 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -8803,12 +8803,11 @@ get_last_value (x) return 0; /* If the value was set in a later insn that the ones we are processing, - we can't use it, but make a quick check to see if the previous insn - set it to something. This is commonly the case when the same pseudo - is used by repeated insns. */ + we can't use it even if the register was only set once, but make a quick + check to see if the previous insn set it to something. This is commonly + the case when the same pseudo is used by repeated insns. */ - if (reg_n_sets[regno] != 1 - && INSN_CUID (reg_last_set[regno]) >= subst_low_cuid) + if (INSN_CUID (reg_last_set[regno]) >= subst_low_cuid) { rtx insn, set; -- 2.30.2