diff options
author | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-08 11:12:00 +0000 |
---|---|---|
committer | irar <irar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-08 11:12:00 +0000 |
commit | d340db4073a7b5c0770b393891e8238f6ba93179 (patch) | |
tree | 30d5b23102a5d34d1cd60781d1132cca58e12209 /gcc/tree-vect-analyze.c | |
parent | de2f99ddbb1405d57de7d6df8d214aaabb79248f (diff) | |
download | gcc-d340db4073a7b5c0770b393891e8238f6ba93179.tar.gz |
* tree-vect-analyze.c (vect_object_analysis): Analyze initial
condition of access function instead of base.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96092 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-analyze.c')
-rw-r--r-- | gcc/tree-vect-analyze.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-vect-analyze.c b/gcc/tree-vect-analyze.c index 4736f1b4cfa..37445043f67 100644 --- a/gcc/tree-vect-analyze.c +++ b/gcc/tree-vect-analyze.c @@ -1654,10 +1654,11 @@ vect_object_analysis (tree memref, tree stmt, bool is_read, fprintf (vect_dump, "not vectorized: ptr is loop invariant."); return NULL_TREE; } - /* Since there exists DR for MEMREF, we are analyzing the base of - handled component, which not necessary has evolution in the + /* Since there exists DR for MEMREF, we are analyzing the init of + the access function, which not necessary has evolution in the loop. */ - address_to_analyze = TREE_OPERAND (base, 0); + address_to_analyze = initial_condition_in_loop_num (access_fn, + loop->num); } /* 3.3 set data-reference structure for MEMREF. */ |