[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)
commitc237f68fc9de04325acd1bb0dd059552c0274481
tree32742512441e842aacf19fcc94288800ec20f78b
parentfababbded9c06ed96af8bfe1b202b197a397cea0
[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.

llvm-svn: 227754
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp