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)
commit6796ab424cc471874895cc6ce093972b14e9e0f5
tree3a31f34c718193accbb5a733f01fe7091589101f
parentedad1b47973e859c4a516cdb825f8412d87c1f7f
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.

llvm-svn: 198631
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Transforms/Utils/LoopSimplify.cpp
llvm/test/Transforms/LoopSimplify/ashr-crash.ll [new file with mode: 0644]
llvm/test/Transforms/LoopSimplify/notify-scev.ll [new file with mode: 0644]