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  <seb@napoca>

	PR middle-end/42930
	* graphite-scop-detection.c (graphite_can_represent_scev): Call
	graphite_can_represent_init for MULT_EXPR.

From-SVN: r156713
This commit is contained in:
Sebastian Pop 2010-02-11 19:42:51 +00:00 committed by Sebastian Pop
parent a4681954cf
commit c4c4983e33
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-02-10 Sebastian Pop <seb@napoca>
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 <seb@napoca>
PR middle-end/42914

View File

@ -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);