diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-28 21:30:40 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-28 21:30:40 +0000 |
commit | 789ac7ff7bba9bf5145a9989f5d650561a51aed1 (patch) | |
tree | 53daf34656ae4d5086ceabe5e3c658064af7df09 /gcc/tree-vect-analyze.c | |
parent | e751a369d606b9430a95327bb1d9209ca840d1dc (diff) | |
download | gcc-789ac7ff7bba9bf5145a9989f5d650561a51aed1.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-analyze.c')
-rw-r--r-- | gcc/tree-vect-analyze.c | 6 |
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)) { |