mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
d7cc3d1b4a
a lazy-asserting PoisoningVH. AssertVH is fundamentally incompatible with cache-invalidation of analysis results. The invaliadtion happens after the AssertingVH has already fired. Instead, use a PoisoningVH that will assert if the dangling handle is ever used rather than merely be assigned or destroyed. This patch also removes all of the (numerous) doomed attempts to work around this fundamental incompatibility. It is a pretty significant simplification IMO. The most interesting change is in the Inliner where we still do some clearing because we don't want to rely on the coarse grained invalidation strategy of the containing pass manager. However, I prefer the approach that contains this logic to the cleanup phase of the Inliner, and I think we could enhance the CGSCC analysis management layer to make this even better in the future if desired. The rest is straight cleanup. I've also added a test for one of the harder cases to work around: when a *module analysis* contains many AssertingVHes pointing at functions. Differential Revision: https://reviews.llvm.org/D29006 llvm-svn: 292928 |
||
---|---|---|
.. | ||
2002-07-17-CastRef.ll | ||
2002-07-17-ConstantRef.ll | ||
2002-08-17-FunctionDGE.ll | ||
2002-08-17-WorkListTest.ll | ||
2002-09-12-Redeletion.ll | ||
2003-07-01-SelfReference.ll | ||
2003-10-09-PreserveWeakGlobals.ll | ||
2009-01-05-DeadAliases.ll | ||
2009-02-17-AliasUsesAliasee.ll | ||
basicvariabletest.ll | ||
comdats.ll | ||
complex-constantexpr.ll | ||
crash-assertingvh.ll | ||
deadblockaddr.ll | ||
externally_available.ll | ||
global_ctors_integration.ll | ||
global_ctors.ll | ||
global-ifunc.ll | ||
indirectbr.ll |