[LV] Move buildScalarSteps out of ILV (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 8 Feb 2022 21:18:40 +0000 (21:18 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 8 Feb 2022 21:18:40 +0000 (21:18 +0000)
commitc9e6678b56c4bed177d56136dad71b12198a4ebb
tree99c00511417d4769c2be46280003d652cb5a5c09
parent72619d101fda15a98b8f406e6009c5da06e3f835
[LV] Move buildScalarSteps out of ILV (NFC).

This makes the function independent of shared state in ILV (ensures no
new dependencies on things like the cost model are introduced) and allows
for use directly in recipe's ::execute functions.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp