Merge the implementations of isLoopInvariant and hasComputableLoopEvolution, and
authorDan Gohman <gohman@apple.com>
Wed, 17 Nov 2010 23:21:44 +0000 (23:21 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 17 Nov 2010 23:21:44 +0000 (23:21 +0000)
commit714b5290b04e08570dae4304c1c92d30c06d3c99
tree7c383ca36ec24098ed0492d7fc4edb978b1c35f6
parente7c682b54390b87cc2264963e957e9b754b59162
Merge the implementations of isLoopInvariant and hasComputableLoopEvolution, and
memoize the results. This improves compile time in code which highly complex
expressions which get queried many times.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119584 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp