]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(try_merge_delay_insns): Move next_trial update
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 11 Apr 1994 17:38:25 +0000 (10:38 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 11 Apr 1994 17:38:25 +0000 (10:38 -0700)
immediately after the try_split call.

From-SVN: r7032

gcc/reorg.c

index d4ebbabf84baef5423e08b9acdaeed80deb90dde..df4d79c0a0ba379cf653c54a509215fec07e1a35 100644 (file)
@@ -1742,12 +1742,13 @@ try_merge_delay_insns (insn, thread)
          && ! insn_sets_resource_p (trial, &set, 1)
          && ! insn_sets_resource_p (trial, &needed, 1)
          && (trial = try_split (pat, trial, 0)) != 0
+         /* Update next_trial, in case try_split succeeded.  */
+         && (next_trial = next_nonnote_insn (trial))
          && rtx_equal_p (PATTERN (next_to_match), PATTERN (trial))
          /* Have to test this condition if annul condition is different
             from (and less restrictive than) non-annulling one.  */
          && eligible_for_delay (delay_insn, slot_number - 1, trial, flags))
        {
-         next_trial = next_nonnote_insn (trial);
 
          if (! annul_p)
            {