From c4c4983e33ef8c852fabeeda692e040f598e6c2d Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 11 Feb 2010 19:42:51 +0000 Subject: [PATCH] re PR middle-end/42930 ([graphite] crash when compiling scummvm on Ubuntu 9.10/amd64 with -floop-block) Fix PR42930. 2010-02-10 Sebastian Pop PR middle-end/42930 * graphite-scop-detection.c (graphite_can_represent_scev): Call graphite_can_represent_init for MULT_EXPR. From-SVN: r156713 --- gcc/ChangeLog.graphite | 6 ++++++ gcc/graphite-scop-detection.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index d7eb169c81c9..2ad0c5224fcd 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,9 @@ +2010-02-10 Sebastian Pop + + PR middle-end/42930 + * graphite-scop-detection.c (graphite_can_represent_scev): Call + graphite_can_represent_init for MULT_EXPR. + 2010-02-10 Sebastian Pop PR middle-end/42914 diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index ddd1121a58da..d89f0f815376 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -225,6 +225,7 @@ graphite_can_represent_scev (tree scev, int outermost_loop) && !CONVERT_EXPR_CODE_P (TREE_CODE (TREE_OPERAND (scev, 1))) && !(chrec_contains_symbols (TREE_OPERAND (scev, 0)) && chrec_contains_symbols (TREE_OPERAND (scev, 1))) + && graphite_can_represent_init (scev) && graphite_can_represent_scev (TREE_OPERAND (scev, 0), outermost_loop) && graphite_can_represent_scev (TREE_OPERAND (scev, 1), outermost_loop);