[VirtualInstruction] Avoid use of getStmtFor(BB). NFC.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 15:27:00 +0000 (15:27 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 15:27:00 +0000 (15:27 +0000)
commit672c0114600a948847b49d139bde2d8bdd183ae9
tree307062c4294f2c18de7d45cd5de25a3a33ad9d3d
parent7cf745cc94bae252df314c28c62202e26dc62dc8
[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

llvm-svn: 309947
polly/lib/Support/VirtualInstruction.cpp