From: Johannes Doerfert Date: Thu, 24 Mar 2016 13:19:16 +0000 (+0000) Subject: Remove obsolete code X-Git-Tag: llvmorg-3.9.0-rc1~11053 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b470e8e61c8b779de3a5f5e775576c8b7bdffe8;p=platform%2Fupstream%2Fllvm.git 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 --- 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())) {