[polly] r267403 - Initialize the invalid domain of an access with an empty set

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 06:36:23 PDT 2016


Author: jdoerfert
Date: Mon Apr 25 08:36:23 2016
New Revision: 267403

URL: http://llvm.org/viewvc/llvm-project?rev=267403&view=rev
Log:
Initialize the invalid domain of an access with an empty set


Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=267403&r1=267402&r2=267403&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon Apr 25 08:36:23 2016
@@ -821,7 +821,9 @@ void MemoryAccess::buildAccessRelation(c
 
   // Initialize the invalid domain which describes all iterations for which the
   // access relation is not modeled correctly.
-  InvalidDomain = getStatement()->getInvalidDomain();
+  auto *StmtInvalidDomain = getStatement()->getInvalidDomain();
+  InvalidDomain = isl_set_empty(isl_set_get_space(StmtInvalidDomain));
+  isl_set_free(StmtInvalidDomain);
 
   isl_ctx *Ctx = isl_id_get_ctx(Id);
   isl_id *BaseAddrId = SAI->getBasePtrId();




More information about the llvm-commits mailing list