[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)
commit2cb3653404f7ae095a6a5c05fa72513be7b078b5
treed04ad0b0d33b8501f39c2c99d9f3d0917aad6436
parent820def6fdd465338c852d92fa03a08b154a5a646
[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

llvm-svn: 309925
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/cache_loop_exit_limit.ll [new file with mode: 0644]
llvm/unittests/Analysis/ScalarEvolutionTest.cpp