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-data-ref.h | |
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-data-ref.h')
-rw-r--r-- | gcc/tree-data-ref.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h index 757c3c1..844a2aea 100644 --- a/gcc/tree-data-ref.h +++ b/gcc/tree-data-ref.h @@ -193,6 +193,7 @@ struct data_reference #define DR_ACCESS_FN(DR, I) VEC_index (tree, DR_ACCESS_FNS (DR), I) #define DR_NUM_DIMENSIONS(DR) VEC_length (tree, DR_ACCESS_FNS (DR)) #define DR_IS_READ(DR) (DR)->is_read +#define DR_IS_WRITE(DR) (!DR_IS_READ (DR)) #define DR_BASE_ADDRESS(DR) (DR)->innermost.base_address #define DR_OFFSET(DR) (DR)->innermost.offset #define DR_INIT(DR) (DR)->innermost.init @@ -473,7 +474,7 @@ ddr_is_anti_dependent (ddr_p ddr) { return (DDR_ARE_DEPENDENT (ddr) == NULL_TREE && DR_IS_READ (DDR_A (ddr)) - && !DR_IS_READ (DDR_B (ddr)) + && DR_IS_WRITE (DDR_B (ddr)) && !same_access_functions (ddr)); } |