Preserve assumption cache in loop-rotate.
authorEli Friedman <efriedma@codeaurora.org>
Wed, 9 Nov 2016 23:05:01 +0000 (23:05 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Wed, 9 Nov 2016 23:05:01 +0000 (23:05 +0000)
commitddbf83ea14914e5a6c047e475939aaa536fe001b
treee68fdac8efb14134e0e06724ecf1687bbea3eb8a
parent5dbe7a9362040c925245a3cf30077b3a14d09a84
Preserve assumption cache in loop-rotate.

No testcase included because I can't figure out how to reduce it.
(It's easy to write a testcase where rotation clones an assume,
but that doesn't actually seem to trigger the crash in opt on
its own; maybe an issue with the laziness?)

Differential Revision: https://reviews.llvm.org/D26434

llvm-svn: 286410
llvm/lib/Transforms/Scalar/LoopRotation.cpp