[ScopInfo] Avoid use of getStmtFor(BB). NFC.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 13:25:28 +0000 (13:25 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 13:25:28 +0000 (13:25 +0000)
commit1df1aac0147fdcf844e8f8e8a4fbc36ad3216756
tree314eb720145214825053a643f3f89297e9799171
parent11ed0622583deada30e6a992df2586de0736fa86
[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

llvm-svn: 309110
polly/lib/Analysis/ScopInfo.cpp