[PATCH] D113772: [Analysis] Fix getNumberOfParts to return 0 when the answer is unknown
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 16 06:24:34 PST 2021
sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.
Seems like a sensible fix to me. Thanks!
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7430
+ bool TypeNotScalarized = false;
+ if (VF.isVector() && VectorTy->isVectorTy()) {
+ unsigned NumParts = TTI.getNumberOfParts(VectorTy);
----------------
Not something introduced by your patch, but the name `VectorTy` seems wrong here :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113772/new/
https://reviews.llvm.org/D113772
More information about the llvm-commits
mailing list