[LoopVectorize] Pass parameters explicitly to MemoryDepChecker
authorAdam Nemet <anemet@apple.com>
Sun, 1 Feb 2015 16:56:09 +0000 (16:56 +0000)
committerAdam Nemet <anemet@apple.com>
Sun, 1 Feb 2015 16:56:09 +0000 (16:56 +0000)
commit4926cfb1da523dc47a68f20ca0d8901db2b35f96
tree725ded7002c62135929a207cbd80b7ef10d3c8b3
parentb70daeec8c503ecab9e3531e7148feb4fc512481
[LoopVectorize] Pass parameters explicitly to MemoryDepChecker

Rather than using globals use a structure to pass parameters from the
vectorizer.  This prepares the class to be moved outside the LoopVectorizer.

It's not great how all this is passed through in LoopAccessAnalysis but this
is all expected to change once the class start servicing the Loop Distribution
pass as well where some of these parameters make no sense.

NFC.  This is part of the patchset that splits out the memory dependence logic
from LoopVectorizationLegality into a new class LoopAccessAnalysis.
LoopAccessAnalysis will be used by the new Loop Distribution pass.

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