[PATCH] D114873: [SLP]Introduce isUndefVector function to check for undef vectors.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 07:31:03 PST 2021
ABataev marked an inline comment as done.
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:293
+ return false;
+ if (!C->containsUndefOrPoisonElement() || !isa<FixedVectorType>(C->getType()))
+ return false;
----------------
RKSimon wrote:
> remove the isa<> - the dyn_cast below handles it
Will do, thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114873/new/
https://reviews.llvm.org/D114873
More information about the llvm-commits
mailing list