diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-09-03 20:05:42 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-09-03 20:05:42 +0000 |
commit | b0af49c40cd2d6ada19aebd5cdb6fe232ebe199b (patch) | |
tree | 3121c570d8493a5ae6a5f6645bb5df55a57f04dd /gcc/tree-predcom.c | |
parent | 0edf45a3f9e04e29a2ad83d9fbd3075c5f8a00cb (diff) | |
download | gcc-b0af49c40cd2d6ada19aebd5cdb6fe232ebe199b.zip gcc-b0af49c40cd2d6ada19aebd5cdb6fe232ebe199b.tar.gz gcc-b0af49c40cd2d6ada19aebd5cdb6fe232ebe199b.tar.bz2 |
Use DR_IS_WRITE instead of !DR_IS_READ.
2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
* tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
DR_IS_WRITE.
(compute_all_dependences): Same.
(create_rdg_edge_for_ddr): Same.
* tree-data-ref.h (DR_IS_WRITE): New.
(ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
* tree-if-conv.c (write_memrefs_written_at_least_once): Same.
(write_memrefs_written_at_least_once): Same.
* tree-predcom.c (suitable_component_p): Same.
(determine_roots_comp): Same.
(execute_load_motion): Same.
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
(vect_enhance_data_refs_alignment): Same.
(vect_analyze_group_access): Same.
From-SVN: r163841
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r-- | gcc/tree-predcom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c index 712cc68..be2cfc4 100644 --- a/gcc/tree-predcom.c +++ b/gcc/tree-predcom.c @@ -829,7 +829,7 @@ suitable_component_p (struct loop *loop, struct component *comp) gcc_assert (dominated_by_p (CDI_DOMINATORS, ba, bp)); bp = ba; - if (!DR_IS_READ (a->ref)) + if (DR_IS_WRITE (a->ref)) has_write = true; } @@ -1197,7 +1197,7 @@ determine_roots_comp (struct loop *loop, FOR_EACH_VEC_ELT (dref, comp->refs, i, a) { - if (!chain || !DR_IS_READ (a->ref) + if (!chain || DR_IS_WRITE (a->ref) || double_int_ucmp (uhwi_to_double_int (MAX_DISTANCE), double_int_sub (a->offset, last_ofs)) <= 0) { @@ -1611,7 +1611,7 @@ execute_load_motion (struct loop *loop, chain_p chain, bitmap tmp_vars) gcc_assert (chain->type == CT_INVARIANT); gcc_assert (!chain->combined); FOR_EACH_VEC_ELT (dref, chain->refs, i, a) - if (!DR_IS_READ (a->ref)) + if (DR_IS_WRITE (a->ref)) n_writes++; /* If there are no reads in the loop, there is nothing to do. */ @@ -1627,7 +1627,7 @@ execute_load_motion (struct loop *loop, chain_p chain, bitmap tmp_vars) bool is_read = DR_IS_READ (a->ref); mark_virtual_ops_for_renaming (a->stmt); - if (!DR_IS_READ (a->ref)) + if (DR_IS_WRITE (a->ref)) { n_writes--; if (n_writes) |