]> granicus.if.org Git - llvm/commit
[SCEV] Re-enable "Cache results of computeExitLimit"
authorMax Kazantsev <max.kazantsev@azul.com>
Thu, 3 Aug 2017 08:41:30 +0000 (08:41 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Thu, 3 Aug 2017 08:41:30 +0000 (08:41 +0000)
commit511c1a306c885f5947c676677cc831d700852e5d
tree7886fbc26c866067851efce64344976e6964a584
parentdaeea6f68d6d67204c89a1f6100b8e958a02aa5f
[SCEV] Re-enable "Cache results of computeExitLimit"

The patch rL309080 was reverted because it did not clean up the cache on "forgetValue"
method call. This patch re-enables this change, adds the missing check and introduces
two new unit tests that make sure that the cache is cleaned properly.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309925 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/cache_loop_exit_limit.ll [new file with mode: 0644]
unittests/Analysis/ScalarEvolutionTest.cpp