aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorEvgeniy Brevnov <evgueni.brevnov@gmail.com>2020-01-20 19:35:39 +0700
committerEvgeniy Brevnov <evgueni.brevnov@gmail.com>2020-02-21 20:20:36 +0700
commitb0761bbc7639d0901d623e1fbf53ccf6ce066b16 (patch)
tree27bf63eba3a6a9078d66aba7cdf6b5280816a934 /llvm/unittests/Support/ErrorTest.cpp
parentd799190851fdd94800428ba335f864ce5fd8135b (diff)
downloadllvm-b0761bbc7639d0901d623e1fbf53ccf6ce066b16.zip
llvm-b0761bbc7639d0901d623e1fbf53ccf6ce066b16.tar.gz
llvm-b0761bbc7639d0901d623e1fbf53ccf6ce066b16.tar.bz2
[DependenceAnalysis] Memory dependence analysis internal caching mechanism is broken in presence of TBAA (PR42733).
Summary: There is a flaw in memory dependence analysis caching mechanism when memory accesses with TBAA are involved. Assume we first analysed and cached results for access with TBAA. Later we request dependence for the same memory but without TBAA (or different TBAA). By design these two queries should share one entry in the internal cache which corresponds to a general access (without TBAA). Thus upon second request internal cached is cleared and we continue analysis for access as if there is no TBAA. The problem is that even though internal cache is cleared the set of visited nodes is not. That means we won't traverse visited nodes again and populate internal cache with the corresponding dependence results. So we end up with internal cache in an incomplete state. Current implementation tries to signal that situation by resetting CacheInfo->Pair at line 1104. But that doesn't actually help since later code ignores this invalidation and relies on 'Cache->empty()' property to decide on cache completeness. Reviewers: reames, hfinkel, chandlerc, fedor.sergeev, asbirlea, fhahn, john.brawn, Prazek, sunfish Reviewed By: john.brawn Subscribers: DaniilSuchkov, kosarev, jfb, dantrushin, hiraditya, bmahjour, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73032
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions