[llvm-commits] [polly] r136749 - /polly/trunk/lib/Analysis/Dependences.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Tue Aug 2 17:09:49 PDT 2011
Author: grosser
Date: Tue Aug 2 19:09:49 2011
New Revision: 136749
URL: http://llvm.org/viewvc/llvm-project?rev=136749&view=rev
Log:
Dependences: Fix memory corruption.
Signed-off-by: Tobias Grosser <tobias at grosser.es>
Modified:
polly/trunk/lib/Analysis/Dependences.cpp
Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=136749&r1=136748&r2=136749&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Tue Aug 2 19:09:49 2011
@@ -102,12 +102,12 @@
accdom = isl_map_intersect_domain(accdom, domcp);
if ((*MI)->isRead())
- isl_union_map_add_map(sink, accdom);
+ sink = isl_union_map_add_map(sink, accdom);
else
- isl_union_map_add_map(must_source, accdom);
+ must_source = isl_union_map_add_map(must_source, accdom);
}
isl_map *scattering = isl_map_copy(Stmt->getScattering());
- isl_union_map_add_map(schedule, scattering);
+ schedule = isl_union_map_add_map(schedule, scattering);
}
DEBUG(
@@ -167,7 +167,7 @@
else
scattering = isl_map_copy((*NewScattering)[Stmt]);
- isl_union_map_add_map(schedule, scattering);
+ schedule = isl_union_map_add_map(schedule, scattering);
}
isl_union_map *temp_must_dep, *temp_may_dep;
@@ -240,7 +240,7 @@
unsigned remainingDimensions = isl_map_n_out(scattering) - dimLevel;
scattering = isl_map_project_out(scattering, isl_dim_out, dimLevel,
remainingDimensions);
- isl_union_map_add_map(schedule, scattering);
+ schedule = isl_union_map_add_map(schedule, scattering);
}
return schedule;
More information about the llvm-commits
mailing list