[PATCH] D127073: [SLP] Treat undef as any other constant
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 5 08:03:29 PDT 2022
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:7598
if (isConstant(V)) {
ReuseShuffleIndicies.emplace_back(UniqueValues.size());
UniqueValues.emplace_back(V);
----------------
For undefs need to push `UndefMaskElem`:
```
ReuseShuffleIndicies.emplace_back(isa<UndefValue>(V) ? UndefMaskElem : UniqueValues.size());
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127073/new/
https://reviews.llvm.org/D127073
More information about the llvm-commits
mailing list