OSDN Git Service

Two changes: Make getDependency remove QueryInst for a dirty record's
authorChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 02:52:26 +0000 (02:52 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 02:52:26 +0000 (02:52 +0000)
commit4a69bade2385022ca776edc22150f3b750cdf23c
tree3b4afca67a304f74bb722d84099c6f734d3fde67
parent56e6d644d0668cb5d644352c64fe1c357b254d58
Two changes: Make getDependency remove QueryInst for a dirty record's
ReverseLocalDeps when we update it.  This fixes a regression test
failure from my last commit.

Second, for each non-local cached information structure, keep a bit that
indicates whether it is dirty or not.  This saves us a scan over the whole
thing in the common case when it isn't dirty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60274 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryDependenceAnalysis.h
lib/Analysis/MemoryDependenceAnalysis.cpp