summaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-16 16:00:17 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-16 16:00:17 +0000
commitc782188f3ffc0c0dc71ee09baacd80f7a7589ab5 (patch)
tree7b576b7515a8cd71afd71de1f0d38d04d85e48a0 /gcc/tree-data-ref.c
parentdb812c94e0a17bff65551c01ad88eea8549b2847 (diff)
downloadgcc-c782188f3ffc0c0dc71ee09baacd80f7a7589ab5.tar.gz
2008-01-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34769 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458. * tree.c (int_cst_value): Instead make this function more permissive in what it accepts as valid input. Document this function always sign-extends the value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index 1fe7c0a4683..2f17ed1deb4 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -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);
}