diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 17:50:09 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 17:50:09 +0000 |
commit | 8424df5fcb92b156f33eae9eb5c66e91e12759a6 (patch) | |
tree | 81a6e238e9cc067cf7ed6b2cc2d0dc2c029e65de /gcc/graphite-sese-to-poly.c | |
parent | d6ad5c2f01896c386c226b29fe3ee9eba2724497 (diff) | |
download | gcc-8424df5fcb92b156f33eae9eb5c66e91e12759a6.tar.gz |
Use {lower,upper}_bound_in_type.
2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (add_param_constraints): Use
lower_bound_in_type and upper_bound_in_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157291 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 99d83d6bf3a..11bddf85fd9 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -1502,16 +1502,15 @@ add_param_constraints (scop_p scop, ppl_Polyhedron_t context, graphite_dim_t p) tree lb = NULL_TREE; tree ub = NULL_TREE; - if (INTEGRAL_TYPE_P (type)) - { - lb = TYPE_MIN_VALUE (type); - ub = TYPE_MAX_VALUE (type); - } - else if (POINTER_TYPE_P (type)) - { - lb = TYPE_MIN_VALUE (sizetype); - ub = TYPE_MAX_VALUE (sizetype); - } + if (POINTER_TYPE_P (type) || !TYPE_MIN_VALUE (type)) + lb = lower_bound_in_type (type, type); + else + lb = TYPE_MIN_VALUE (type); + + if (POINTER_TYPE_P (type) || !TYPE_MAX_VALUE (type)) + ub = upper_bound_in_type (type, type); + else + ub = TYPE_MAX_VALUE (type); if (lb) { |