[PATCH] D17241: [Polly] [Refactor] Move isl_ctx into Scop.

Hongbin Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 07:17:08 PST 2016


etherzhhb set the repository for this revision to rL LLVM.
etherzhhb updated this revision to Diff 48186.
etherzhhb added a comment.

Use shared_ptr again.

  After we move isl_ctx into Scop, we need to make sure the isl_ctx
   is free after all isl objects are freed. This is no straightforward
   because we create isl objects in multiple analyses, and the PassManager
   make no guarantee on the order of freeing those passes.
  
   To solve this problem, we distribute the same isl_ctx to all analyses
   that create isl objects with shared_ptrs that share the same reference
   conter. The idea is to use the reference counter to capture the last
   pass that are being freed, and free the isl_ctx at that time.


Repository:
  rL LLVM

http://reviews.llvm.org/D17241

Files:
  include/polly/DependenceInfo.h
  include/polly/ScopInfo.h
  lib/Analysis/DependenceInfo.cpp
  lib/Analysis/ScopInfo.cpp
  lib/CodeGen/IslAst.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17241.48186.patch
Type: text/x-patch
Size: 10708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160217/87efd3dd/attachment.bin>


More information about the llvm-commits mailing list