Scevs could be expressions without chrecs and still be scev_analyzable_p.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 20:27:59 +0000 (20:27 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 20:27:59 +0000 (20:27 +0000)
2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>

* sese.h (scev_analyzable_p): Scevs could be expressions without
chrecs and still be scev_analyzable_p.

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

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/sese.h

index 6b8a4da..61f5314 100644 (file)
@@ -1,5 +1,10 @@
 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * sese.h (scev_analyzable_p): Scevs could be expressions without
+       chrecs and still be scev_analyzable_p.
+
+2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
+
        * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
 
 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
index 9eb3ae8..a93e035 100644 (file)
@@ -1,5 +1,10 @@
 2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * sese.h (scev_analyzable_p): Scevs could be expressions without
+       chrecs and still be scev_analyzable_p.
+
+2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
+
        * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
 
 2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
index 1502cbe..f10030c 100644 (file)
@@ -398,7 +398,8 @@ scev_analyzable_p (tree def, sese region)
 
   return !chrec_contains_undetermined (scev)
     && TREE_CODE (scev) != SSA_NAME
-    && evolution_function_is_affine_p (scev);
+    && (tree_does_not_contain_chrecs (scev)
+       || evolution_function_is_affine_p (scev));
 }
 
 #endif