[LV] Move trunc codegen to buildScalarSteps (NFCI).
authorFlorian Hahn <flo@fhahn.com>
Sat, 26 Nov 2022 23:48:46 +0000 (23:48 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 26 Nov 2022 23:48:46 +0000 (23:48 +0000)
commitbf0bd85f9d823216501dcc09ae5461c2cf633ccf
tree319d29b9cdf99db0dc29674296db056ddf982877
parentb68a38a960d8266aff9600c69c1080dbbef33ec7
[LV] Move trunc codegen to buildScalarSteps (NFCI).

This moves the code to truncate step and IV into buildScalarSteps,
closer to the place where they are actually used.

Suggested in D133758.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp