[PATCH] D113774: [SLP]Improve splat detection.

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 09:06:54 PST 2021


anton-afanasyev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:2596
     if (isSplat(Entry->Scalars)) {
       OS << "<splat> " << *Entry->Scalars[0];
       return Str;
----------------
ABataev wrote:
> anton-afanasyev wrote:
> > Change it or just remove?
> Why?
`Entry->Scalars[0]` can be `undef` with this patch, for this case the output is uninformative.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113774



More information about the llvm-commits mailing list