aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2010-11-21 09:19:37 -0800
committerRichard Henderson <rth@gcc.gnu.org>2010-11-21 09:19:37 -0800
commita344c9f188b249e29a638930e6ce33ad53e35da6 (patch)
tree812c351874a7ff34a140e48a1a3a66773b493d84 /gcc/gcse.c
parent2dc211c5ff5a257604c71766495b8790a3cf6471 (diff)
downloadgcc-a344c9f188b249e29a638930e6ce33ad53e35da6.zip
gcc-a344c9f188b249e29a638930e6ce33ad53e35da6.tar.gz
gcc-a344c9f188b249e29a638930e6ce33ad53e35da6.tar.bz2
re PR rtl-optimization/46571 (bootstrap comparison failure in fortran/trans-openmp.c)
PR rtl-optimization/46571 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn. (compute_hash_table_work): Use NONDEBUG_INSN_P. From-SVN: r167007
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 595fdb2..9ff0da8 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -1460,7 +1460,7 @@ hash_scan_set (rtx pat, rtx insn, struct hash_table_d *table)
modified. Here we want to search from INSN+1 on, but
oprs_available_p searches from INSN on. */
&& (insn == BB_END (BLOCK_FOR_INSN (insn))
- || (tmp = next_nonnote_insn (insn)) == NULL_RTX
+ || (tmp = next_nonnote_nondebug_insn (insn)) == NULL_RTX
|| BLOCK_FOR_INSN (tmp) != BLOCK_FOR_INSN (insn)
|| oprs_available_p (pat, tmp)))
insert_set_in_table (pat, insn, table);
@@ -1748,7 +1748,7 @@ compute_hash_table_work (struct hash_table_d *table)
determine when registers and memory are first and last set. */
FOR_BB_INSNS (current_bb, insn)
{
- if (! INSN_P (insn))
+ if (!NONDEBUG_INSN_P (insn))
continue;
if (CALL_P (insn))
@@ -1771,7 +1771,7 @@ compute_hash_table_work (struct hash_table_d *table)
/* The next pass builds the hash table. */
FOR_BB_INSNS (current_bb, insn)
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
hash_scan_insn (insn, table);
}