re PR tree-optimization/66767 (FAIL: gcc.dg/vect/vect-align-1.c execution test)
authorRichard Biener <rguenther@suse.de>
Mon, 6 Jul 2015 13:12:39 +0000 (13:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 6 Jul 2015 13:12:39 +0000 (13:12 +0000)
2015-07-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66767
* tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
Make sure to build the alignment test on a SSA name without
final alignment info valid only if the alignment test
evaluates to true.

From-SVN: r225454

gcc/ChangeLog
gcc/tree-vect-loop-manip.c

index e2b9974a9c8db03bd2f2146824e149d55fb5c310..7c43598d84359221e125c67e7de708c3702c7ceb 100644 (file)
@@ -1,3 +1,11 @@
+2015-07-06  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/66767
+       * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
+       Make sure to build the alignment test on a SSA name without
+       final alignment info valid only if the alignment test
+       evaluates to true.
+
 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
 
        PR target/66620
index 58d2c7feeff1f59da4bf84fe45f2a22987c9c453..56314ed077323d972c44a3db43584603674ba323 100644 (file)
@@ -2143,7 +2143,7 @@ vect_create_cond_for_align_checks (loop_vec_info loop_vinfo,
       bool negative = tree_int_cst_compare
        (DR_STEP (STMT_VINFO_DATA_REF (stmt_vinfo)), size_zero_node) < 0;
       tree offset = negative
-       ? size_int (-TYPE_VECTOR_SUBPARTS (vectype) + 1) : NULL_TREE;
+       ? size_int (-TYPE_VECTOR_SUBPARTS (vectype) + 1) : size_zero_node;
 
       /* create: addr_tmp = (int)(address_of_first_vector) */
       addr_base =