SCEV: Use AssertingVH to catch dangling BasicBlock* when passes forget
authorAndrew Trick <atrick@apple.com>
Wed, 3 Aug 2011 18:32:11 +0000 (18:32 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 3 Aug 2011 18:32:11 +0000 (18:32 +0000)
commit1009c3299be8c147ecd3fbd2d75ba1bafb2c84b1
tree4274d096b0ac5e060841b6a5330dba08477edc21
parent1c3ff6595f944c2c9b834895e41c78c9c922f4af
SCEV: Use AssertingVH to catch dangling BasicBlock* when passes forget
to notify SCEV of a change. Add forgetLoop in a couple of those places.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136797 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Transforms/Utils/LoopSimplify.cpp
lib/Transforms/Utils/LoopUnroll.cpp
test/Transforms/LoopSimplify/preserve-scev.ll