[ScopBuilder] Avoid use of getStmtFor(BB). NFC.
commite75cd5305afa90606dae98bd3f53ac26facbcddf
authorMichael Kruse <llvm@meinersbur.de>
Thu, 20 Jul 2017 12:47:09 +0000 (20 12:47 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 20 Jul 2017 12:47:09 +0000 (20 12:47 +0000)
tree3f068584ec1b0aff3fdff83fe070ca490a9004fb
parentf8fb2733d907bb01e4b52b20cfdf9eb07ef14733
[ScopBuilder] Avoid use of getStmtFor(BB). NFC.

Since there will be no more a 1:1 correspondence between statements
and basic blocks, we would like to get rid of the method getStmtFor(BB)
and its uses. Here we remove one of its uses in ScopBuilder by fetching
the statement in which the instruction lies.

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

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