[PATCH] D78911: [LV] Induction Variable does not remain scalar under tail-folding.

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 13:00:43 PDT 2020


Ayal accepted this revision.
Ayal added a comment.
This revision is now accepted and ready to land.

Thanks for cleaning this up!
Just adding another follow-up.



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:1869
   // vector IV.
   auto CreateSplatIV = [&](Value *ScalarIV, Value *Step) {
     Value *Broadcasted = getBroadcastInstrs(ScalarIV);
----------------
This is now called only for VF=1, so doesn't really create vectors by splatting a scalar IV, only takes care of bump it across UF parts. Can be further cleaned-up, as a follow-up patch.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78911/new/

https://reviews.llvm.org/D78911





More information about the llvm-commits mailing list