[ScopInfo] Avoid use of getStmtFor(BB). NFC.
commit47b7e4d252fd3d97c9fb53fddb192aadc207cefa
authorMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 13:25:28 +0000 (26 13:25 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 13:25:28 +0000 (26 13:25 +0000)
tree5ca5a13ec2fabf440aacf5b053d52f6636ceaedc
parent4f7e7863b5e96d2a222596168415378f58284174
[ScopInfo] 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 ScopInfo by fetching
the statement in which the call instruction lies.

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

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