Patchwork [1/5] Remove redundant checks in graphite_can_represent_scev.

login
register
mail settings
Submitter Sebastian Pop
Date Aug. 17, 2010, 6:20 p.m.
Message ID <1282069224-21268-2-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/61947/
State New
Headers show

Comments

Sebastian Pop - Aug. 17, 2010, 6:20 p.m.
From: Tobias Grosser <grosser@fim.uni-passau.de>

2010-08-17  Tobias Grosser  <grosser@fim.uni-passau.de>

        * graphite-scop-detection.c (graphite_can_represent_scev): Remove
        redundant checks.
---
 gcc/ChangeLog.graphite        |    5 +++++
 gcc/graphite-scop-detection.c |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 8d133dd..da76ef8 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 8b5759b..d7e3dbf 100644
--- a/gcc/graphite-scop-detection.c
+++ b/gcc/graphite-scop-detection.c
@@ -246,8 +246,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;
 }