OSDN Git Service

2005-09-28 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 2005 21:30:40 +0000 (21:30 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 2005 21:30:40 +0000 (21:30 +0000)
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

gcc/ChangeLog
gcc/tree-vect-analyze.c

index 67db2cb..4c15aa2 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 2c5136b..a9681bd 100644 (file)
@@ -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))
     {