diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-11-18 06:02:26 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-11-18 06:02:26 +0000 |
commit | a3201927bb42d5e732104013f5142ab39257decd (patch) | |
tree | 96d4902248d6b570e56d9410a0539f2289aba6dd /gcc/graphite-scop-detection.c | |
parent | d785e46f77dbfc48ce018c840b7f50183d449490 (diff) | |
download | gcc-a3201927bb42d5e732104013f5142ab39257decd.zip gcc-a3201927bb42d5e732104013f5142ab39257decd.tar.gz gcc-a3201927bb42d5e732104013f5142ab39257decd.tar.bz2 |
re PR debug/41888 (ICE from '-O -ftree-loop-distribution -fgraphite-identity -g')
PR debug/41888
PR debug/41886
* graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
are ok.
* graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
(try_generate_gimple_bb): Skip debug stmts when finding data refs.
* sese.c (sese_build_liveouts_bb): Skip debug stmts.
(sese_bad_liveouts_use): New.
(sese_reset_debug_liveouts_bb): New.
(sese_build_liveouts): Use it.
(rename_variables_in_stmt): Reset debug stmts rather than creating
new vars for them.
(expand_scalar_variable_stmt): Likewise.
From-SVN: r154279
Diffstat (limited to 'gcc/graphite-scop-detection.c')
-rw-r--r-- | gcc/graphite-scop-detection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 9fdf6b3..596a334 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -372,6 +372,9 @@ stmt_simple_for_scop_p (basic_block scop_entry, loop_p outermost_loop, || (gimple_code (stmt) == GIMPLE_ASM)) return false; + if (is_gimple_debug (stmt)) + return true; + if (!stmt_has_simple_data_refs_p (outermost_loop, stmt)) return false; |