Similar to the vect_gen_niters_for_prolog_loop change I already noticed on x86_64.
Built on ppc64-unknown-linux-gnu, applied. Richard. 2015-07-06 Richard Biener <rguent...@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. Index: gcc/tree-vect-loop-manip.c =================================================================== --- gcc/tree-vect-loop-manip.c (revision 225449) +++ gcc/tree-vect-loop-manip.c (working copy) @@ -2143,7 +2143,7 @@ vect_create_cond_for_align_checks (loop_ 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 =