[ScopBuilder/Simplify] Refactor isEscaping. NFC.
commite8c6f564e92587d0a45020b9d1b74c11299a0896
authorMichael Kruse <llvm@meinersbur.de>
Thu, 27 Jul 2017 14:39:52 +0000 (27 14:39 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 27 Jul 2017 14:39:52 +0000 (27 14:39 +0000)
treee13df7f963968da96f57082fcd13316fc1feaed2
parent72ad9c62c03c4a26ae96d67130915d70655e6213
[ScopBuilder/Simplify] Refactor isEscaping. NFC.

ScopBuilder and Simplify (through VirtualInstruction.cpp) previously
used this functionality in their own implementation. Refactor them
both into a common one into the Scop class.

BlockGenerator also makes use of a similiar functionality, but also
records outside users and takes place after region simplification.
Merging it as well would be more complicated.

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