Patchwork [11/44] Remove redundant checks in graphite_can_represent_scev.

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 30, 2010, 6:01 p.m.
Message ID <1285869696-10915-12-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/66198/
State New
Headers show

Comments

Sebastian Pop - Sept. 30, 2010, 6:01 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

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/branches/graphite@163314 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog                 |    7 ++++++-
 gcc/ChangeLog.graphite        |    5 +++++
 gcc/graphite-scop-detection.c |    3 +--
 3 files changed, 12 insertions(+), 3 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e4adf9..12a289c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 7dd6378..cb63848 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -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
diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c
index bd0f7bd..ce941db 100644
--- a/gcc/graphite-scop-detection.c
+++ b/gcc/graphite-scop-detection.c
@@ -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;
 }