diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-15 10:46:39 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-15 10:46:39 +0000 |
commit | 7d1099cb3bdd9f869ab8990a8311ce4d0eb6e409 (patch) | |
tree | 8a5f476c165afd0e2738bb275d1440f1422fb7dc /gcc/tree-vect-data-refs.c | |
parent | 856dbd59d092b9991f56f3e4e9e842085d865f1e (diff) | |
download | gcc-7d1099cb3bdd9f869ab8990a8311ce4d0eb6e409.tar.gz |
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
read-after-read dependencies in basic block SLP.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178880 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index e4d32e9d277..33ccf347ff9 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -607,6 +607,11 @@ vect_analyze_data_ref_dependence (struct data_dependence_relation *ddr, if (vect_check_interleaving (dra, drb)) return false; + /* Read-read is OK (we need this check here, after checking for + interleaving). */ + if (DR_IS_READ (dra) && DR_IS_READ (drb)) + return false; + if (vect_print_dump_info (REPORT_DR_DETAILS)) { fprintf (vect_dump, "can't determine dependence between "); |