[ScopInfo] Keep scalar acceess dictionaries up-to-data. NFC.
commit0a63c02bc0662d9c48f6b8e18ab18628b1c947f4
authorMichael Kruse <llvm@meinersbur.de>
Thu, 11 May 2017 22:56:12 +0000 (11 22:56 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 11 May 2017 22:56:12 +0000 (11 22:56 +0000)
treed665c8ed03eae8ad3f1c41afdc52c34587627fc4
parentc6d189d0ab4850e4e00f82d5fbe45ab8661bd064
[ScopInfo] Keep scalar acceess dictionaries up-to-data. NFC.

When removing a MemoryAccess, also remove it from maps pointing to it.
This was already done for InstructionToAccess, but not yet for
ValueReads, ValueWrites and PHIWrites as those were only used during
the ScopBuilder phase. Keeping them updated allows us to use them
later as well.

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