[LoopUnroll] Don't clear out the AssumptionCache on each loop
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 16 Aug 2016 21:09:46 +0000 (21:09 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 16 Aug 2016 21:09:46 +0000 (21:09 +0000)
commit110522bc0fe8e6d4a8f9baaea4f58f1cb827d92d
tree7038bc060f19f3aebce2d272797a97bfce00988e
parentb99b709068ab351e6ee7630137b6bac6313f76c8
[LoopUnroll] Don't clear out the AssumptionCache on each loop

Clearing out the AssumptionCache can cause us to rescan the entire
function for assumes.  If there are many loops, then we are scanning
over the entire function many times.

Instead of clearing out the AssumptionCache, register all cloned
assumes.

llvm-svn: 278854
llvm/lib/Transforms/Utils/LoopUnroll.cpp