[DependenceInfo] Pull out statement [NFC]
This simplifies the code slightly. llvm-svn: 295551
This commit is contained in:
parent
8ee46985d2
commit
28492b85e2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue