From ce15adaa116fa31401863c4d2f94dd507e935af2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 6 Oct 1994 06:57:08 -0400 Subject: [PATCH] (try_merge_delay_insns): Update THREAD if it is split. From-SVN: r8226 --- gcc/reorg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/reorg.c b/gcc/reorg.c index 2cff2c985ae..430bc7d0402 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -1762,6 +1762,7 @@ try_merge_delay_insns (insn, thread) for (trial = thread; !stop_search_p (trial, 1); trial = next_trial) { rtx pat = PATTERN (trial); + rtx oldtrial = trial; next_trial = next_nonnote_insn (trial); @@ -1781,6 +1782,8 @@ try_merge_delay_insns (insn, thread) && (trial = try_split (pat, trial, 0)) != 0 /* Update next_trial, in case try_split succeeded. */ && (next_trial = next_nonnote_insn (trial)) + /* Likewise THREAD. */ + && (thread = oldtrial == thread ? trial : thread) && 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. */ -- 2.30.2