[LoopVectorize] Factor out duplicated code into Report::emitAnalysis
authorAdam Nemet <anemet@apple.com>
Sun, 1 Feb 2015 16:55:58 +0000 (16:55 +0000)
committerAdam Nemet <anemet@apple.com>
Sun, 1 Feb 2015 16:55:58 +0000 (16:55 +0000)
commitf986a7f39c34d6161d3596300c581a244d4e578a
tree2d3d0cd1b6b5991bd944a2d1e288ad6f905a80f4
parent2659684fe36922fb0e782782d79b184028c2a16f
[LoopVectorize] Factor out duplicated code into Report::emitAnalysis

The logic in emitAnalysis is duplicated across multiple functions.  This
splits it into a function.  Another use will be added by the patchset.

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@227748 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp