[LoopAccesses] Make VectorizerParams global + fix for cyclic dep
authorAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:14:52 +0000 (19:14 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 19 Feb 2015 19:14:52 +0000 (19:14 +0000)
commit4b86046b7cd9bab73fb29b81b37f881b8d66d936
treeabadf4b11e4c8c7710e51c3ec2f0e61dda148ffd
parentc76d1879446b8aa39f16184ecff1fb4cc438d5d7
[LoopAccesses] Make VectorizerParams global + fix for cyclic dep

As LAA is becoming a pass, we can no longer pass the params to its
constructor.  This changes the command line flags to have external
storage.  These can now be accessed both from LV and LAA.

VectorizerParams is moved out of LoopAccessInfo in order to shorten the
code to access it.

This commits also has the fix (D7731) to the break dependence cycle
between the analysis and vector libraries.

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