[PATCH] D87550: [SLPVectorizer][SVE] Avoid blind cast to FixedVectorType in getAggregateSize.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 12 01:22:48 PDT 2020
RKSimon added a reviewer: RKSimon.
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:7085
+ else
+ return FVTy->getNumElements();
+ }
----------------
(style)
```
// For scalable type, num of elements is unknown at compile-time.
if (auto *FVTy = dyn_cast<FixedVectorType>(IE->getType()))
return FVTy->getNumElements();
return None;
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87550/new/
https://reviews.llvm.org/D87550
More information about the llvm-commits
mailing list