[LoopAccesses] Make blockNeedsPredication static
authorAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:43:19 +0000 (03:43 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:43:19 +0000 (03:43 +0000)
commit0d1e8dd84e4215e46e571e4249111da9928f78c3
tree33d4b988d7a3c8e43c7a589bb75910b8dd8aee21
parent14cc2e25c51a4188b263d01c2e8c2ae976587b83
[LoopAccesses] Make blockNeedsPredication static

blockNeedsPredication is in LoopAccess in order to share it with the
vectorizer.  It's a utility needed by LoopAccess not strictly provided
by it but it's a good place to share it.  This makes the function static
so that it no longer required to create an LoopAccessInfo instance in
order to access it from LV.

This was actually causing problems because it would have required
creating LAI much earlier that LV::canVectorizeMemory().

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@229625 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp