OSDN Git Service

Fix PR42930.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2010 19:42:51 +0000 (19:42 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2010 19:42:51 +0000 (19:42 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156713 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog.graphite
gcc/graphite-scop-detection.c

index d7eb169..2ad0c52 100644 (file)
@@ -1,5 +1,11 @@
 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
        PR middle-end/42530
        * graphite-sese-to-poly.c (remove_phi): New.
index ddd1121..d89f0f8 100644 (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);