From 2b470e8e61c8b779de3a5f5e775576c8b7bdffe8 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Thu, 24 Mar 2016 13:19:16 +0000 Subject: [PATCH] Remove obsolete code 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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 166b954..463a769 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -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())) { -- 2.7.4