[llvm-commits] [polly] r152235 - in /polly/trunk: include/polly/Dependences.h lib/Analysis/Dependences.cpp

Tobias Grosser grosser at fim.uni-passau.de
Wed Mar 7 09:42:36 PST 2012


Author: grosser
Date: Wed Mar  7 11:42:36 2012
New Revision: 152235

URL: http://llvm.org/viewvc/llvm-project?rev=152235&view=rev
Log:
Dependences: Remove unused no_source information

Modified:
    polly/trunk/include/polly/Dependences.h
    polly/trunk/lib/Analysis/Dependences.cpp

Modified: polly/trunk/include/polly/Dependences.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Dependences.h?rev=152235&r1=152234&r2=152235&view=diff
==============================================================================
--- polly/trunk/include/polly/Dependences.h (original)
+++ polly/trunk/include/polly/Dependences.h Wed Mar  7 11:42:36 2012
@@ -43,7 +43,6 @@
   class Dependences : public ScopPass {
 
     isl_union_map *must_dep, *may_dep;
-    isl_union_map *must_no_source, *may_no_source;
 
     isl_union_map *war_dep;
     isl_union_map *waw_dep;

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=152235&r1=152234&r2=152235&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Wed Mar  7 11:42:36 2012
@@ -47,7 +47,6 @@
 //===----------------------------------------------------------------------===//
 Dependences::Dependences() : ScopPass(ID) {
   must_dep = may_dep = NULL;
-  must_no_source = may_no_source = NULL;
   sink = must_source = may_source = NULL;
   war_dep = waw_dep = NULL;
 }
@@ -75,12 +74,6 @@
   if (may_dep)
     isl_union_map_free(may_dep);
 
-  if (must_no_source)
-    isl_union_map_free(must_no_source);
-
-  if (may_no_source)
-    isl_union_map_free(may_no_source);
-
   if (war_dep)
     isl_union_map_free(war_dep);
 
@@ -88,8 +81,6 @@
     isl_union_map_free(waw_dep);
 
   must_dep = may_dep = NULL;
-  must_no_source = may_no_source = NULL;
-
   war_dep = waw_dep = NULL;
 
   for (Scop::iterator SI = S.begin(), SE = S.end(); SI != SE; ++SI) {
@@ -128,8 +119,7 @@
                               isl_union_map_copy(must_source),
                               isl_union_map_copy(may_source),
                               isl_union_map_copy(schedule),
-                              &must_dep, &may_dep, &must_no_source,
-                              &may_no_source);
+                              &must_dep, &may_dep, NULL, NULL);
 
   isl_union_map_compute_flow(isl_union_map_copy(must_source),
                              isl_union_map_copy(must_source),
@@ -139,8 +129,6 @@
   // Remove redundant statements.
   must_dep = isl_union_map_coalesce(must_dep);
   may_dep = isl_union_map_coalesce(may_dep);
-  must_no_source = isl_union_map_coalesce(must_no_source);
-  may_no_source = isl_union_map_coalesce(may_no_source);
   waw_dep = isl_union_map_coalesce(waw_dep);
   war_dep = isl_union_map_coalesce(war_dep);
 
@@ -318,12 +306,6 @@
 
   OS.indent(4) << "May dependences:\n";
   OS.indent(8) << stringFromIslObj(may_dep) << "\n";
-
-  OS.indent(4) << "Must no source:\n";
-  OS.indent(8) << stringFromIslObj(must_no_source) << "\n";
-
-  OS.indent(4) << "May no source:\n";
-  OS.indent(8) << stringFromIslObj(may_no_source) << "\n";
 }
 
 void Dependences::releaseMemory() {
@@ -333,12 +315,6 @@
   if (may_dep)
     isl_union_map_free(may_dep);
 
-  if (must_no_source)
-    isl_union_map_free(must_no_source);
-
-  if (may_no_source)
-    isl_union_map_free(may_no_source);
-
   if (war_dep)
     isl_union_map_free(war_dep);
 
@@ -346,7 +322,6 @@
     isl_union_map_free(waw_dep);
 
   must_dep = may_dep = NULL;
-  must_no_source = may_no_source = NULL;
   war_dep = waw_dep = NULL;
 
   if (sink)





More information about the llvm-commits mailing list