[LoopAccesses] Cache the result of canVectorizeMemory
authorAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:15:00 +0000 (19:15 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:15:00 +0000 (19:15 +0000)
commit093a04b6d65acf24ffc066779cd26a1fce3bdfd0
treebda39f7077ff9c00751b0d95d5465e9a555a9338
parent7b507eb2a5f37d03aec153244f443de17ea0e9b9
[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@229892 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp