diff options
author | Richard Biener <rguenther@suse.de> | 2019-02-06 11:18:33 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-02-06 11:18:33 +0000 |
commit | 124f4f57c463876ca5367834cfb7e36870cb39a1 (patch) | |
tree | 80c2564c887428fb97edbc5883ecd1644548ae39 /gcc/graphite.h | |
parent | cfc30fd17588446c8c54c6e1e77dec2dc18ba0fb (diff) | |
download | gcc-124f4f57c463876ca5367834cfb7e36870cb39a1.zip gcc-124f4f57c463876ca5367834cfb7e36870cb39a1.tar.gz gcc-124f4f57c463876ca5367834cfb7e36870cb39a1.tar.bz2 |
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
Diffstat (limited to 'gcc/graphite.h')
-rw-r--r-- | gcc/graphite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/graphite.h b/gcc/graphite.h index fa0c351..dc4b15d 100644 --- a/gcc/graphite.h +++ b/gcc/graphite.h @@ -460,6 +460,7 @@ carries_deps (__isl_keep isl_union_map *schedule, extern bool build_poly_scop (scop_p); extern bool graphite_regenerate_ast_isl (scop_p); extern void build_scops (vec<scop_p> *); +extern tree cached_scalar_evolution_in_region (const sese_l &, loop_p, tree); extern void dot_all_sese (FILE *, vec<sese_l> &); extern void dot_sese (sese_l &); extern void dot_cfg (); |