[ScopBuilder/Simplify] Refactor isEscaping. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 27 Jul 2017 14:39:52 +0000 (14:39 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 27 Jul 2017 14:39:52 +0000 (14:39 +0000)
commita508a4e619c9c7f531bf504af347d1c90f0d8408
treed47045d0fad5b9c201a5b9adf42c3f5d02dbcc44
parentdb479524dd94c21e244490cf895fe32b24771a7b
[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.

llvm-svn: 309273
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/Support/VirtualInstruction.cpp