[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)
commit436018c3ffa219d69ca383284e4303107d9edcaf
treeec0759bdb17eb756de83dc46eeafc857959c8a86
parentc922853b931869e9c76ed06395add273c3af102a
[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.

llvm-svn: 229892
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp