diff options
author | Michael Matz <matz@suse.de> | 2012-05-09 16:08:26 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2012-05-09 16:08:26 +0000 |
commit | 0c91037894987356abfee77dfe49cd075b7126c2 (patch) | |
tree | c309a04da0f209d341aaa7749a148bd7728505fc /gcc/tree-vect-data-refs.c | |
parent | b0cd199e8de7227c2fcac3cfb7f767d61678914b (diff) | |
download | gcc-0c91037894987356abfee77dfe49cd075b7126c2.zip gcc-0c91037894987356abfee77dfe49cd075b7126c2.tar.gz gcc-0c91037894987356abfee77dfe49cd075b7126c2.tar.bz2 |
re PR tree-optimization/53185 (segmentation fault in vectorizable_load)
PR tree-optimization/53185
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
peeling when we see strided loads.
testsuite/
* gcc.dg/vect/pr53185.c: New test.
From-SVN: r187340
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 7464034..715e3ff 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -1507,6 +1507,17 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo) && GROUP_FIRST_ELEMENT (stmt_info) != stmt) continue; + /* FORNOW: Any strided load prevents peeling. The induction + variable analysis will fail when the prologue loop is generated, + and so we can't generate the new base for the pointer. */ + if (STMT_VINFO_STRIDE_LOAD_P (stmt_info)) + { + if (vect_print_dump_info (REPORT_DETAILS)) + fprintf (vect_dump, "strided load prevents peeling"); + do_peeling = false; + break; + } + /* For invariant accesses there is nothing to enhance. */ if (integer_zerop (DR_STEP (dr))) continue; |