[DependenceInfo] Simplify use of StmtSchedule's domain [NFC]
commitff6559d46212646b430153e13cfc9ed7b67c4049
authorMichael Kruse <llvm@meinersbur.de>
Thu, 23 Feb 2017 15:40:46 +0000 (23 15:40 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 23 Feb 2017 15:40:46 +0000 (23 15:40 +0000)
tree1f6f52188c4007657a6b432f03490e80662e7307
parent3f2603782eac03a2daa117c9a9d599ab0d057f73
[DependenceInfo] Simplify use of StmtSchedule's domain [NFC]

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.

Contributed-by: Siddharth Bhat <siddu.druid@gmail.com>
Differential Revision: https://reviews.llvm.org/D30208

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@295984 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DependenceInfo.cpp