]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/graphite.h
re PR tree-optimization/89182 ([graphite] ICE in extract_affine, at graphite-sese...
authorRichard Biener <rguenther@suse.de>
Wed, 6 Feb 2019 11:18:33 +0000 (11:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 6 Feb 2019 11:18:33 +0000 (11:18 +0000)
commit124f4f57c463876ca5367834cfb7e36870cb39a1
tree80c2564c887428fb97edbc5883ecd1644548ae39
parentcfc30fd17588446c8c54c6e1e77dec2dc18ba0fb
re PR tree-optimization/89182 ([graphite] ICE in extract_affine, at graphite-sese-to-poly.c:280)

2019-02-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89182
* graphite.h (cached_scalar_evolution_in_region): Declare.
* graphite.c (struct seir_cache_key): New.
(struct sese_scev_hash): Likewise.
(seir_cache): New global.
(cached_scalar_evolution_in_region): New function.
(graphite_transform_loops): Allocate and release seir_cache.
* graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
cached_scalar_evolution_in_region.
* graphite-scop-detection.c (scop_detection::can_represent_loop):
Simplify.
(scop_detection::graphite_can_represent_expr: Use
cached_scalar_evolution_in_region.
(scop_detection::stmt_simple_for_scop_p): Likewise.
(find_params_in_bb): Likewise.
(gather_bbs::before_dom_children): Likewise.
* graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
(add_loop_constraints): Likewise.

* gfortran.dg/graphite/pr89182.f90: New testcase.

From-SVN: r268575
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c
gcc/graphite-scop-detection.c
gcc/graphite-sese-to-poly.c
gcc/graphite.c
gcc/graphite.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/pr89182.f90 [new file with mode: 0644]