This is an archive of the discontinued LLVM Phabricator instance.

[Polly][DependenceInfo] Simplify use of StmtSchedule's domain [NFC]
ClosedPublic

Authored by bollu on Feb 21 2017, 9:11 AM.

Details

Summary

Once a StmtSchedule is created, only its domain is used anywhere within
DependenceInfo::calculateDependences. So, we choose to return the
wrapped domain of the union_map rather than the entire union_map.

However, we still build the union_map first within collectInfo(). It is
cleaner to first build the entire union_map and then pull the domain out in
one shot, rather than repeatedly extracting the domain in bits and pieces
from accdom.

Event Timeline

bollu created this revision.Feb 21 2017, 9:11 AM
Meinersbur accepted this revision.Feb 22 2017, 8:01 AM

Nice simplification.

lib/Analysis/DependenceInfo.cpp
117

The domain of a schedule is a statement's domain. That is, StmtDomain instead of StmtScheduleDomain is enough.

Or something more specific: TaggedDomain

303

Here as well just StmtDomain.

This revision is now accepted and ready to land.Feb 22 2017, 8:01 AM
grosser edited edge metadata.Feb 22 2017, 11:14 PM

Siddharth does not yet have commit rights. You might need to commit this for him.

@Siddharth, please ask Chris Lattner for commit rights [1]. You will work a lot on Polly over the next time. You will certainly need them.

[1] http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access

This revision was automatically updated to reflect the committed changes.