[LoopAccesses] Cache the result of canVectorizeMemory
authorAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:57 +0000 (03:42 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:57 +0000 (03:42 +0000)
commit14cc2e25c51a4188b263d01c2e8c2ae976587b83
tree709fc5fcc5148f01e0173e61e0c655ab70f5c453
parent8b0647f26bdcf53833f8e0de2e09fd1471be5349
[LoopAccesses] Cache the result of canVectorizeMemory

LAA will be an on-demand analysis pass, so we need to cache the result
of the analysis.  canVectorizeMemory is renamed to analyzeLoop which
computes the result.  canVectorizeMemory becomes the query function for
the cached result.

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229624 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp