diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-10-06 00:04:05 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-10-06 00:04:05 +0000 |
commit | cf3942dfa6162d78e591e6356765d4fd769c4864 (patch) | |
tree | 822c51b157e9f2e6801ecc7a396e7cf8de493e53 /polly/lib/Pocc.cpp | |
parent | 4da8d9fc155e9bff2a28e796a03efe4cd79f7c36 (diff) | |
download | bcm5719-llvm-cf3942dfa6162d78e591e6356765d4fd769c4864.tar.gz bcm5719-llvm-cf3942dfa6162d78e591e6356765d4fd769c4864.zip |
ScopInfo: Only give away a copy of the schedule.
llvm-svn: 141256
Diffstat (limited to 'polly/lib/Pocc.cpp')
-rw-r--r-- | polly/lib/Pocc.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/polly/lib/Pocc.cpp b/polly/lib/Pocc.cpp index fbf78a6bfb8..34ac0f9244b 100644 --- a/polly/lib/Pocc.cpp +++ b/polly/lib/Pocc.cpp @@ -179,7 +179,7 @@ bool Pocc::runOnScop(Scop &S) { if ((*SI)->isFinalRead()) continue; - isl_map *scat = isl_map_copy((*SI)->getScattering()); + isl_map *scat = (*SI)->getScattering(); isl_map *projected = isl_map_project_out(scat, isl_dim_out, lastLoop, scatterDims - lastLoop); @@ -199,11 +199,9 @@ bool Pocc::runOnScop(Scop &S) { for (Scop::iterator SI = S.begin(), SE = S.end(); SI != SE; ++SI) { if ((*SI)->isFinalRead()) continue; - isl_map *scat = (*SI)->getScattering(); - - int scatDims = isl_map_n_out(scat); - isl_space *Space= isl_space_alloc(S.getCtx(), S.getNumParams(), scatDims, - scatDims + 1); + int scatDims = (*SI)->getNumScattering(); + isl_space *Space = isl_space_alloc(S.getCtx(), S.getNumParams(), scatDims, + scatDims + 1); isl_basic_map *map = isl_basic_map_universe(isl_space_copy(Space)); for (int i = 0; i <= lastLoop - 1; i++) { |