[ScopInfo] Remove dependency of Scop::getLastStmtFor(BB) on getStmtFor(BB). NFC.
commitb47f3f6a20bd48c6b0d9ea4f0a8684392bfa93cc
authorMichael Kruse <llvm@meinersbur.de>
Thu, 20 Jul 2017 17:08:50 +0000 (20 17:08 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 20 Jul 2017 17:08:50 +0000 (20 17:08 +0000)
tree2a68a2df5cb4a78f37eabc8d0fbe9d2876350b07
parent977157ee748ed9ec16251766fa05f87dd4a5c107
[ScopInfo] Remove dependency of Scop::getLastStmtFor(BB) on getStmtFor(BB). NFC.

We are working towards removing uses of Scop::getStmtFor(BB). In this
patch, we remove dependency of Scop::getLastStmtFor(BB) on
getStmtFor(BB). To do so, we get the list of all statements
corresponding to the BB and then fetch the last one.

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

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