OSDN Git Service

[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)
commit2ed3d817876e7306d30d3518c47b1dd8cd302077
tree73d20828ee25bdf744a3bd94681d7d9a4cec076c
parent8f5027f8f0780e0de5bec2dab5be4b5027390e9d
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278854 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnroll.cpp