[VirtualInstruction] Avoid use of getStmtFor(BB). NFC.
commit44900b45e94843ab76b24f11d37a06809c46758f
authorMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 15:27:00 +0000 (3 15:27 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 15:27:00 +0000 (3 15:27 +0000)
tree541e44daf248b5b9e56c559311b2932f481c49d5
parent4e877f50c567deabb5d8e748c409f227611cecd8
[VirtualInstruction] Avoid use of getStmtFor(BB). NFC.

With this patch, we get rid of the last use of getStmtFor(BB). Here
this is done by getting the last statement of the incoming block in
case the user is a phi node; otherwise just fetching the statement
comprising the instruction for which the virtual use is being created.

Differential Revision: https://reviews.llvm.org/D36268

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@309947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/VirtualInstruction.cpp