OSDN Git Service

2008-01-16 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / tree-data-ref.c
index 1fe7c0a..2f17ed1 100644 (file)
@@ -1823,21 +1823,12 @@ analyze_siv_subscript_cst_affine (tree chrec_a,
 static HOST_WIDE_INT
 initialize_matrix_A (lambda_matrix A, tree chrec, unsigned index, int mult)
 {
-  tree type;
-
   gcc_assert (chrec);
 
-  type = TREE_TYPE (chrec);
   if (TREE_CODE (chrec) != POLYNOMIAL_CHREC)
-    return tree_low_cst (chrec, TYPE_UNSIGNED (type)
-                               && !(TREE_CODE (type) == INTEGER_TYPE
-                                    && TYPE_IS_SIZETYPE (type)));
-
-  type = TREE_TYPE (CHREC_RIGHT (chrec));
-  A[index][0] = mult * tree_low_cst (CHREC_RIGHT (chrec),
-                                    TYPE_UNSIGNED (type)
-                                    && !(TREE_CODE (type) == INTEGER_TYPE
-                                         && TYPE_IS_SIZETYPE (type)));
+    return int_cst_value (chrec);
+
+  A[index][0] = mult * int_cst_value (CHREC_RIGHT (chrec));
   return initialize_matrix_A (A, CHREC_LEFT (chrec), index + 1, mult);
 }