llvm-project/llvm/unittests/Transforms/Scalar
Alina Sbirlea bd541b217f [NewPassManager] Add assertions when getting statefull cached analysis.
Summary:
Analyses that are statefull should not be retrieved through a proxy from
an outer IR unit, as these analyses are only invalidated at the end of
the inner IR unit manager.
This patch disallows getting the outer manager and provides an API to
get a cached analysis through the proxy. If the analysis is not
stateless, the call to getCachedResult will assert.

Reviewers: chandlerc

Subscribers: mehdi_amini, eraman, hiraditya, zzheng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72893
2020-05-13 12:38:38 -07:00
..
CMakeLists.txt [Test] Add a unit test exposing lack of SCEV invalidation in LICM during code hoisting. NFC. 2019-10-31 17:16:57 +07:00
LICMTest.cpp [LICM] Invalidate SCEV upon instruction hoisting 2019-10-31 17:37:53 +07:00
LoopPassManagerTest.cpp [NewPassManager] Add assertions when getting statefull cached analysis. 2020-05-13 12:38:38 -07:00