]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix type problems in loop ivs.
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 8 Mar 2010 17:49:36 +0000 (17:49 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Mon, 8 Mar 2010 17:49:36 +0000 (17:49 +0000)
commit68d3ff9044377af9aecfbcb8953205c9a7a8f71f
tree6a1a47eb427ba78c11b008b0e38679bf05584a5c
parente3f81db10f5c278a75b7e9c76db402ee6e5c73e2
Fix type problems in loop ivs.

Fix pr42644.
Fix pr42130 (dealII).

2010-03-03  Tobias Grosser  <grosser@fim.uni-passau.de>

* gcc/graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
handle conversions from pointer to integers.
(gcc_type_for_cloog_iv): Choose the smalles signed integer as an
induction variable, to be able to work with code generated by
CLooG.
* gcc/graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
(build_poly_scop): Bail out if we cannot codegen a loop.
* gcc/testsuite/gcc.dg/graphite/id-18.c: New.
* gcc/testsuite/gcc.dg/graphite/run-id-pr42644.c: New.
* libgomp/testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
* libgomp/testsuite/libgomp.graphite/force-parallel-2.c: Adjust.

From-SVN: r157286
gcc/graphite-clast-to-gimple.c
gcc/graphite-sese-to-poly.c
gcc/testsuite/gcc.dg/graphite/id-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/run-id-pr42644.c [new file with mode: 0644]
libgomp/testsuite/libgomp.graphite/force-parallel-1.c
libgomp/testsuite/libgomp.graphite/force-parallel-2.c