diff options
author | Aditya Kumar <aditya.k7@samsung.com> | 2015-11-23 19:28:13 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2015-11-23 19:28:13 +0000 |
commit | 36f40be01235095cd7bb5039b0027b9720534f37 (patch) | |
tree | 417ad9898a43ec0ccd452be020c358b9984dcc26 /gcc/graphite.c | |
parent | 8f29e7f5ea0d1f35c2f0524e31c0da9885a8c917 (diff) | |
download | gcc-36f40be01235095cd7bb5039b0027b9720534f37.zip gcc-36f40be01235095cd7bb5039b0027b9720534f37.tar.gz gcc-36f40be01235095cd7bb5039b0027b9720534f37.tar.bz2 |
fix PR68279: bail out when scev gets instantiated to not_known
Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r230771
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index c2efdc9..ef7e64d 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -62,7 +62,6 @@ along with GCC; see the file COPYING3. If not see #include "graphite-poly.h" #include "graphite-scop-detection.h" #include "graphite-isl-ast-to-gimple.h" -#include "graphite-sese-to-poly.h" /* Print global statistics to FILE. */ @@ -326,20 +325,18 @@ graphite_transform_loops (void) if (dbg_cnt (graphite_scop)) { scop->isl_context = ctx; - build_poly_scop (scop); - - if (dump_file && dump_flags) - print_scop (dump_file, scop); - if (scop->poly_scop_p - && apply_poly_transforms (scop)) - { - need_cfg_cleanup_p = true; - /* When code generation is not successful, do not continue - generating code for the next scops: the IR has to be cleaned up - and could be in an inconsistent state. */ - if (!graphite_regenerate_ast_isl (scop)) - break; - } + if (!build_poly_scop (scop)) + continue; + + if (!apply_poly_transforms (scop)) + continue; + + need_cfg_cleanup_p = true; + /* When code generation is not successful, do not continue + generating code for the next scops: the IR has to be cleaned up + and could be in an inconsistent state. */ + if (!graphite_regenerate_ast_isl (scop)) + break; } free_scops (scops); |