Reapply r198478 "Fix PR18361: Invalidate LoopDispositions after LoopSimplify hoists...
authorAndrew Trick <atrick@apple.com>
Mon, 6 Jan 2014 19:43:14 +0000 (19:43 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 6 Jan 2014 19:43:14 +0000 (19:43 +0000)
commita55aaf7fe6b5728c60050cc3664fffe762f85aa1
tree7199ec9e27eb0bad1eae2aaf376e6ead42549130
parent1abc3c0b7fe517ac7fc0d215c0e93003518e6270
Reapply r198478 "Fix PR18361: Invalidate LoopDispositions after LoopSimplify hoists things."

Now with a fix for PR18384: ValueHandleBase::ValueIsDeleted.

We need to invalidate SCEV's loop info when we delete a block, even if no values are hoisted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198631 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Transforms/Utils/LoopSimplify.cpp
test/Transforms/LoopSimplify/ashr-crash.ll [new file with mode: 0644]
test/Transforms/LoopSimplify/notify-scev.ll [new file with mode: 0644]