[LV] Use buildScalarSteps to also handle VF = 1. (NFCI)
authorFlorian Hahn <flo@fhahn.com>
Thu, 20 Oct 2022 13:30:01 +0000 (14:30 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 20 Oct 2022 13:30:01 +0000 (14:30 +0100)
commite25ed058bc234673357c2d92e6aaf732f355e66f
tree8d63700eeec35aa1b7d1db3899f1656c4e106546
parent7c32c7e77744f549743d5c5f970d60c8539da982
[LV] Use buildScalarSteps to also handle VF = 1. (NFCI)

The code in buildScalarSteps already properly handles creating the
scalar induction values with VF = 1. Use it directly instead of using
extra code to handle that case.

Suggested by @Ayal in D133760.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/scalarize-store-with-predication.ll
llvm/test/Transforms/LoopVectorize/first-order-recurrence.ll
llvm/test/Transforms/LoopVectorize/float-induction.ll
llvm/test/Transforms/LoopVectorize/if-pred-non-void.ll
llvm/test/Transforms/LoopVectorize/if-pred-stores.ll
llvm/test/Transforms/LoopVectorize/interleave-and-scalarize-only.ll
llvm/test/Transforms/LoopVectorize/pr45679-fold-tail-by-masking.ll
llvm/test/Transforms/LoopVectorize/select-cmp-predicated.ll
llvm/test/Transforms/LoopVectorize/tail-folding-vectorization-factor-1.ll