Remove obsolete code
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Thu, 24 Mar 2016 13:19:16 +0000 (13:19 +0000)
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>
Thu, 24 Mar 2016 13:19:16 +0000 (13:19 +0000)
  Since r261226 we should not see this situation any more, if so it is probably
  a bug that would only be hidden.

llvm-svn: 264269

polly/lib/Analysis/ScopInfo.cpp

index 166b954..463a769 100644 (file)
@@ -3064,14 +3064,7 @@ bool Scop::isHoistableAccess(MemoryAccess *Access,
     return false;
 
   isl_map *AccessRelation = Access->getAccessRelation();
-
-  // Skip accesses that have an empty access relation. These can be caused
-  // by multiple offsets with a type cast in-between that cause the overall
-  // byte offset to be not divisible by the new types sizes.
-  if (isl_map_is_empty(AccessRelation)) {
-    isl_map_free(AccessRelation);
-    return false;
-  }
+  assert(!isl_map_is_empty(AccessRelation));
 
   if (isl_map_involves_dims(AccessRelation, isl_dim_in, 0,
                             Stmt.getNumIterators())) {