diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2012-01-24 19:03:33 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2012-01-24 19:03:33 +0000 |
commit | 53d9622bda42facc4e456033b7a86e7bf102826a (patch) | |
tree | 6defecb75ee127af1ec9e7ad8fbce045bbce65f5 /gcc/cselib.c | |
parent | f8a27aa6319931d0d5317d8cd860e24a607cd442 (diff) | |
download | gcc-53d9622bda42facc4e456033b7a86e7bf102826a.tar.gz |
rtl.h (true_dependence, [...]): Remove varies parameter.
gcc/
* rtl.h (true_dependence, canon_true_dependence): Remove varies
parameter.
* alias.c (fixed_scalar_and_varying_struct_p): Delete.
(true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
(true_dependence_1, true_dependence, canon_true_dependence): Remove
varies parameter.
* cselib.c (cselib_rtx_varies_p): Delete.
(cselib_invalidate_mem): Update call to canon_true_dependence.
* dse.c (record_store, check_mem_read_rtx): Likewise.
(scan_reads_nospill): Likewise.
* cse.c (check_dependence): Likewise.
(cse_rtx_varies_p): Delete.
* expr.c (safe_from_p): Update call to true_dependence.
* ira.c (validate_equiv_mem_from_store): Likewise.
(memref_referenced_p): Likewise.
* postreload-gcse.c (find_mem_conflicts): Likewise.
* sched-deps.c (sched_analyze_2): Likewise.
* store-motion.c (load_kills_store): Likewise.
* config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
* gcse.c (mems_conflict_for_gcse_p): Likewise.
(compute_transp): Update call to canon_true_dependence.
From-SVN: r183485
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index ab9c458fe82..0c3b3a38e06 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -2172,20 +2172,6 @@ cselib_invalidate_regno (unsigned int regno, enum machine_mode mode) } } -/* Return 1 if X has a value that can vary even between two - executions of the program. 0 means X can be compared reliably - against certain constants or near-constants. */ - -static bool -cselib_rtx_varies_p (const_rtx x ATTRIBUTE_UNUSED, bool from_alias ATTRIBUTE_UNUSED) -{ - /* We actually don't need to verify very hard. This is because - if X has actually changed, we invalidate the memory anyway, - so assume that all common memory addresses are - invariant. */ - return 0; -} - /* Invalidate any locations in the table which are changed because of a store to MEM_RTX. If this is called because of a non-const call instruction, MEM_RTX is (mem:BLK const0_rtx). */ @@ -2222,8 +2208,8 @@ cselib_invalidate_mem (rtx mem_rtx) continue; } if (num_mems < PARAM_VALUE (PARAM_MAX_CSELIB_MEMORY_LOCATIONS) - && ! canon_true_dependence (mem_rtx, GET_MODE (mem_rtx), mem_addr, - x, NULL_RTX, cselib_rtx_varies_p)) + && ! canon_true_dependence (mem_rtx, GET_MODE (mem_rtx), + mem_addr, x, NULL_RTX)) { has_mem = true; num_mems++; |