From 24a285841212403389646af2198d1a34fd0b01e6 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 7 Aug 2001 14:59:58 +0200 Subject: alias.c (nonlocal_mentioned_p): Rename CONST_CALL_P to CONST_OR_PURE_CALL_P * alias.c (nonlocal_mentioned_p): Rename CONST_CALL_P to CONST_OR_PURE_CALL_P * calls.c (emit_call_1): Likewise. * cse.c (cse_insn, invalidate_skipped_block): Likewise. * cselib.c (cselib_process_insn): Likewise. * df.c (df_insns_modify): Likewise. * flow.c (need_fake_edge_p): Likewise. (propagate_one_insn): Likewise. * haifa-sched.c (reemit_notes): Likewise. * integrate.c (copy_insn_list): Likewise. * jump.c (delete_prior_computation): Likewise. * local-alloc.c (validate_equiv_mem): Likewise. * loop.c (scan_loop): Likewise. * predict.c (estimate_probability): Likewise. * reload.c (reload): Likewise. * sched-deps (sched_analyze): Likewise. * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P. * gcse.c (compute_hash_table): Likewise. (mark_call): Likewise. (store_killed_in_insn): Likewise. From-SVN: r44688 --- gcc/gcse.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gcc/gcse.c') diff --git a/gcc/gcse.c b/gcc/gcse.c index 4fe1b3b..f0031c0 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2514,8 +2514,7 @@ compute_hash_table (set_p) if (TEST_HARD_REG_BIT (regs_invalidated_by_call, regno)) record_last_reg_set_info (insn, regno); - if (! CONST_CALL_P (insn)) - record_last_mem_set_info (insn); + mark_call (insn); } note_stores (PATTERN (insn), record_last_set_info, insn); @@ -2794,7 +2793,7 @@ static void mark_call (insn) rtx insn; { - if (! CONST_CALL_P (insn)) + if (! CONST_OR_PURE_CALL_P (insn)) record_last_mem_set_info (insn); } @@ -6478,6 +6477,9 @@ find_loads (x, store_pattern) int i,j; int ret = 0; + if (!x) + return 0; + if (GET_CODE (x) == SET) x = SET_SRC (x); @@ -6513,7 +6515,7 @@ store_killed_in_insn (x, insn) if (GET_CODE (insn) == CALL_INSN) { - if (CONST_CALL_P (insn)) + if (CONST_OR_PURE_CALL_P (insn)) return 0; else return 1; -- cgit v1.1