Infer types based on lb and ub.
authorSebastian Pop <sebastian.pop@amd.com>
Thu, 21 Jul 2011 22:57:59 +0000 (22:57 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 21 Jul 2011 22:57:59 +0000 (22:57 +0000)
commitef74e2ba382eecfea8d7ef44d54add99c3fd4d92
treeab76d08fcdd37605200b9cce9a27a5b59935ea1f
parent84f2ffea18c756f4c07e35e771739319f515711e
Infer types based on lb and ub.

2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/47654
PR middle-end/49649
* graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
in parameter.  Initialize v1 and v2 based on the values returned
by clast_name_to_lb_ub.
(type_for_clast_red): Pass v1 and v2 in parameter, and set their
values.
(type_for_clast_bin): Same.
(type_for_clast_expr): Same.
(type_for_clast_eq): Update calls to type_for_clast_expr.
(type_for_clast_for): Same.
(build_iv_mapping): Same.
* graphite-ppl.h (value_min): New.

* gcc.dg/graphite/run-id-pr47654.c: New.

From-SVN: r176605
gcc/ChangeLog
gcc/graphite-clast-to-gimple.c
gcc/graphite-ppl.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/run-id-pr47654.c [new file with mode: 0644]