[ScopInfo] Do not use ScopStmt in Domain derivation of ScopInfo. NFC
commit34320d6af7242c6bf125ac213b5231769a3b72f0
authorMichael Kruse <llvm@meinersbur.de>
Thu, 29 Jun 2017 12:47:41 +0000 (29 12:47 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 29 Jun 2017 12:47:41 +0000 (29 12:47 +0000)
tree15f708ada96ad0ded1c5882d37bb018dc740ba2e
parentc5519114794b6f2f9938ff7e93fd1c7f2abad183
[ScopInfo] Do not use ScopStmt in Domain derivation of ScopInfo. NFC

ScopStmts were being used in the computation of the Domain of the SCoPs
in ScopInfo. Once statements are split, there will not be a 1-to-1
correspondence between Stmts and Basic blocks. Thus this patch avoids
the use of getStmtFor() by creating a map of BB to InvalidDomain and
using it to compute the domain of the statements.

Contributed-by: Nanidini Singhal <cs15mtech01004@iith.ac.in>
Differential Revision: https://reviews.llvm.org/D33942

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@306667 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
include/polly/Support/ScopHelper.h
lib/Analysis/ScopBuilder.cpp
lib/Analysis/ScopInfo.cpp
lib/Support/ScopHelper.cpp