summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-analyze.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-09-28 21:30:40 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-09-28 21:30:40 +0000
commit9b14a362a3f08082301e7adf3880c58bbea9b8e5 (patch)
tree53daf34656ae4d5086ceabe5e3c658064af7df09 /gcc/tree-vect-analyze.c
parent75b1574e5a0cff78fbe6b34954dbbf6a97a5b9e5 (diff)
downloadgcc-9b14a362a3f08082301e7adf3880c58bbea9b8e5.tar.gz
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
Diffstat (limited to 'gcc/tree-vect-analyze.c')
-rw-r--r--gcc/tree-vect-analyze.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vect-analyze.c b/gcc/tree-vect-analyze.c
index 2c5136b1974..a9681bd0c18 100644
--- a/gcc/tree-vect-analyze.c
+++ b/gcc/tree-vect-analyze.c
@@ -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))
{