[LoopVectorizer] Change types of lists from pointers to references. NFC
authorDavid Green <david.green@arm.com>
Mon, 2 Mar 2020 14:26:32 +0000 (14:26 +0000)
committerDavid Green <david.green@arm.com>
Mon, 2 Mar 2020 15:04:41 +0000 (15:04 +0000)
commitd0d38df0914fad4d128b178dd26e11bb035e83ae
treefe47d76fa7a07873bad3faccd02cbbd4ceb4c72e
parentf87d30cba2b54a9083a0b276ad97d645c4b8b16c
[LoopVectorizer] Change types of lists from pointers to references. NFC

getReductionVars, getInductionVars and getFirstOrderRecurrences were all
being returned from LoopVectorizationLegality as pointers to lists. This
just changes them to be references, cleaning up the interface slightly.

Differential Revision: https://reviews.llvm.org/D75448
llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h
llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp