Fix LoopSimplify to notify ScalarEvolution when splitting a loop backedge
authorDan Gohman <gohman@apple.com>
Sat, 4 Sep 2010 02:42:48 +0000 (02:42 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 4 Sep 2010 02:42:48 +0000 (02:42 +0000)
commitffa75cdcf82ef2034249a313b9276eaa1bee6c43
treec6c62ef6b26365a814b84fb17df1df50a07ed855
parentaace0f295b0e2467a38424aa7ead34de09b3f37d
Fix LoopSimplify to notify ScalarEvolution when splitting a loop backedge
into an inner loop, as the new loop iteration may differ substantially.
This fixes PR8078.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
test/Transforms/LoopSimplify/preserve-scev.ll [new file with mode: 0644]