]> gcc.gnu.org Git - gcc.git/commitdiff
Add a case where reg_n_refs is cleared
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Jan 1997 20:25:29 +0000 (20:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Jan 1997 20:25:29 +0000 (20:25 +0000)
From-SVN: r13561

gcc/combine.c

index be5843b56290196c747851688726222b2af4219a..a0f15b3672cabef432a203ac7f722493783624f7 100644 (file)
@@ -2355,7 +2355,9 @@ 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 && ! i2dest_in_i2src)
+       if (! added_sets_2
+           && (newi2pat == 0 || ! reg_mentioned_p (i2dest, newi2pat))
+           && ! i2dest_in_i2src)
          {
            regno = REGNO (i2dest);
            reg_n_sets[regno]--;
This page took 0.07126 seconds and 5 git commands to generate.