(cse_insn): When using src_related, copy the rtx.
authorRichard Stallman <rms@gnu.org>
Wed, 27 Oct 1993 23:22:38 +0000 (23:22 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 27 Oct 1993 23:22:38 +0000 (23:22 +0000)
Likewise for src_eqv_here.

From-SVN: r5922

gcc/cse.c

index ade0532ce4521fb05dedb79be00053f3048062ac..46806b3ae4ad44b6c2e92994adbdc928e7335e65 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -6403,9 +6403,9 @@ cse_insn (insn, in_libcall_block)
            trial = src, src_cost = 10000;
           else if (src_eqv_cost <= src_related_cost
                   && src_eqv_cost <= src_elt_cost)
-           trial = src_eqv_here, src_eqv_cost = 10000;
+           trial = copy_rtx (src_eqv_here), src_eqv_cost = 10000;
           else if (src_related_cost <= src_elt_cost)
-           trial = src_related, src_related_cost = 10000;
+           trial = copy_rtx (src_related), src_related_cost = 10000;
           else
            {
              trial = copy_rtx (elt->exp);