From 1ef40d6b95a5180ab9e812a1df23e792db0d67b1 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 11 Oct 2007 09:46:04 +0000 Subject: [PATCH] gcse.c (hash_scan_set): If the next nonnote insn is in a different basic block insert the set. 2007-10-11 Richard Guenther * gcse.c (hash_scan_set): If the next nonnote insn is in a different basic block insert the set. From-SVN: r129230 --- gcc/ChangeLog | 5 +++++ gcc/gcse.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e737cb70229..730949bb81b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-10-11 Richard Guenther + + * gcse.c (hash_scan_set): If the next nonnote insn is in + a different basic block insert the set. + 2007-10-11 Richard Guenther PR middle-end/33724 diff --git a/gcc/gcse.c b/gcc/gcse.c index 6f308c22e71..79aa8afd31d 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -1761,6 +1761,7 @@ hash_scan_set (rtx pat, rtx insn, struct hash_table *table) oprs_available_p searches from INSN on. */ && (insn == BB_END (BLOCK_FOR_INSN (insn)) || (tmp = next_nonnote_insn (insn)) == NULL_RTX + || BLOCK_FOR_INSN (tmp) != BLOCK_FOR_INSN (insn) || oprs_available_p (pat, tmp))) insert_set_in_table (pat, insn, table); } -- 2.30.2