public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR66767
@ 2015-07-06 13:10 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2015-07-06 13:10 UTC (permalink / raw)
  To: gcc-patches


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  <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.

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 =

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-06 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 13:10 [PATCH] Fix PR66767 Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).