Commit 9b14a362 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/23853 (ICE: in tree_low_cst, at tree.c:4270)

2005-09-28  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/23853
	* tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
	host_integerp to verify misalignment value.

From-SVN: r104743
parent 75b1574e
2005-09-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/23853
* tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
host_integerp to verify misalignment value.
2005-09-28 Richard Henderson <rth@redhat.com>
* builtins.c (get_builtin_sync_mode): New.
......
......@@ -773,15 +773,15 @@ vect_compute_data_ref_alignment (struct data_reference *dr)
/* Modulo alignment. */
misalign = size_binop (TRUNC_MOD_EXPR, misalign, alignment);
if (tree_int_cst_sgn (misalign) < 0)
if (!host_integerp (misalign, 1))
{
/* Negative misalignment value. */
/* Negative or overflowed misalignment value. */
if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, "unexpected misalign value");
return false;
}
DR_MISALIGNMENT (dr) = tree_low_cst (misalign, 1);
DR_MISALIGNMENT (dr) = TREE_INT_CST_LOW (misalign);
if (vect_print_dump_info (REPORT_DETAILS))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment