Fix PR3141 by ensuring that MemoryDependenceAnalysis::removeInstruction
authorChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 22:51:08 +0000 (22:51 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 22:51:08 +0000 (22:51 +0000)
commitd3d12ecadd1eb859c4b30b6582e31901a45d6626
tree7cb165beafc0381624551d998b2fee25b6c25c09
parent5425f22fa3f8cbbcbc1a76fc7df2fa251cdc132d
Fix PR3141 by ensuring that MemoryDependenceAnalysis::removeInstruction
properly updates the reverse dependency map when it installs updated
dependencies for instructions that depend on the removed instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
test/Transforms/DeadStoreElimination/2008-11-28-MemDepUpdate.ll [new file with mode: 0644]