summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/DependenceInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/Analysis/DependenceInfo.cpp')
-rw-r--r--polly/lib/Analysis/DependenceInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/polly/lib/Analysis/DependenceInfo.cpp b/polly/lib/Analysis/DependenceInfo.cpp
index eed23c7faa8..f1d91ac15a3 100644
--- a/polly/lib/Analysis/DependenceInfo.cpp
+++ b/polly/lib/Analysis/DependenceInfo.cpp
@@ -320,9 +320,10 @@ void Dependences::calculateDependences(Scop &S) {
dbgs() << "AccessSchedule: " << AccessSchedule << '\n';
dbgs() << "StmtSchedule: " << StmtSchedule << '\n';);
+ Schedule = S.getScheduleTree();
+
if (!HasReductions) {
isl_union_map_free(AccessSchedule);
- Schedule = S.getScheduleTree();
// Tag the schedule tree if we want fine-grain dependence info
if (Level > AL_Statement) {
auto TaggedDom = isl_union_map_domain((isl_union_map_copy(StmtSchedule)));
@@ -335,8 +336,6 @@ void Dependences::calculateDependences(Scop &S) {
isl_union_map *ReductionMap, *IdentityMap;
isl_union_pw_multi_aff *ReductionTags, *IdentityTags, *Tags;
- Schedule = S.getScheduleTree();
-
// Extract reduction tags from the access schedule. The result is a map that
// maps each tagged element in the domain to the memory location it
// accesses.
OpenPOWER on IntegriCloud