Remove functional changes that sneaked in by accident in r308892
authorTobias Grosser <tobias@grosser.es>
Sun, 6 Aug 2017 18:59:19 +0000 (18:59 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 6 Aug 2017 18:59:19 +0000 (18:59 +0000)
llvm-svn: 310218

polly/lib/Analysis/ScopInfo.cpp

index 0f75646..96b4a08 100644 (file)
@@ -4698,15 +4698,6 @@ Scop::getAccessesOfType(std::function<bool(MemoryAccess &)> Predicate) {
   }
 
   return isl_union_map_coalesce(Accesses);
-
-  for (auto X : this->getInvariantAccesses())
-    for (auto A : X.InvariantAccesses) {
-      if (!Predicate(*A))
-        continue;
-      Accesses =
-          isl_union_map_add_map(Accesses, A->getAccessRelation().release());
-    }
-  return isl_union_map_coalesce(Accesses);
 }
 
 __isl_give isl_union_map *Scop::getMustWrites() {