[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)
commitf219c6472355e0b5d207281e1fb19031c90998d2
tree1883e7e2960a768ed57287558d8bb2d60fb048e6
parent04d4163e951bcb006c2aa7ea0271e1404fa92a32
[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.

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