OSDN Git Service

Remove redundant checks in graphite_can_represent_scev.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:17:26 +0000 (21:17 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Sep 2010 21:17:26 +0000 (21:17 +0000)
2010-08-17  Tobias Grosser  <grosser@fim.uni-passau.de>

        * graphite-scop-detection.c (graphite_can_represent_scev): Remove
        redundant checks.

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

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

index f059496..c697a68 100644 (file)
@@ -1,4 +1,9 @@
-2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>
+2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
+
+       * graphite-scop-detection.c (graphite_can_represent_scev): Remove
+       redundant checks.
+
+2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
 
        * graphite-clast-to-gimple.c (precision_for_value): Adjust
        computation of precision by 1.
index 7dd6378..cb63848 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-17  Tobias Grosser  <grosser@fim.uni-passau.de>
+
+       * graphite-scop-detection.c (graphite_can_represent_scev): Remove
+       redundant checks.
+
 2010-08-12  Sebastian Pop  <sebastian.pop@amd.com>
 
        * graphite-clast-to-gimple.c (precision_for_value): Adjust
index bd0f7bd..ce941db 100644 (file)
@@ -245,8 +245,7 @@ graphite_can_represent_scev (tree scev, int outermost_loop)
   if (!scev_is_linear_expression (scev))
     return false;
 
-  return evolution_function_is_invariant_p (scev, outermost_loop)
-    || evolution_function_is_affine_multivariate_p (scev, outermost_loop);
+  return true;
 }