summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-12-27 08:44:39 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-12-27 08:44:39 +0000
commit17c630a09c4228f0a954e38efe1658155c47505f (patch)
treeab033e3991c2ab1ef47690b8bde081edbb94c791 /llvm/lib/Support/Debug.cpp
parentba90ae969cc770bd132cc22049de7910c0e02fd3 (diff)
downloadbcm5719-llvm-17c630a09c4228f0a954e38efe1658155c47505f.tar.gz
bcm5719-llvm-17c630a09c4228f0a954e38efe1658155c47505f.zip
[PM] Teach the AAManager and AAResults layer (the worst offender for
inter-analysis dependencies) to use the new invalidation infrastructure. This teaches it to invalidate itself when any of the peer function AA results that it uses become invalid. We do this by just tracking the originating IDs. I've kept it in a somewhat clunky API since some users of AAResults are outside the new PM right now. We can clean this API up if/when those users go away. Secondly, it uses the registration on the outer analysis manager proxy to trigger deferred invalidation when a module analysis result becomes invalid. I've included test cases that specifically try to trigger use-after-free in both of these cases and they would crash or hang pretty horribly for me even without ASan. Now they work nicely. The `InvalidateAnalysis` utility pass required some tweaking to be useful in this context and it still is pretty garbage. I'd like to switch it back to the previous implementation and teach the explicit invalidate method on the AnalysisManager to take care of correctly triggering indirect invalidation, but I wanted to go ahead and send this out so folks could see how all of this stuff works together in practice. And, you know, that it does actually work. =] Differential Revision: https://reviews.llvm.org/D27205 llvm-svn: 290595
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud