[PATCH] D82212: [SVE] Remove calls to VectorType::getNumElements from FuzzMutate
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 11:16:24 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4d1fd33561cf: [SVE] Remove calls to VectorType::getNumElements from FuzzMutate (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82212/new/
https://reviews.llvm.org/D82212
Files:
llvm/lib/FuzzMutate/Operations.cpp
Index: llvm/lib/FuzzMutate/Operations.cpp
===================================================================
--- llvm/lib/FuzzMutate/Operations.cpp
+++ llvm/lib/FuzzMutate/Operations.cpp
@@ -302,7 +302,7 @@
return ShuffleVectorInst::isValidOperands(Cur[0], Cur[1], V);
};
auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *> Ts) {
- auto *FirstTy = cast<VectorType>(Cur[0]->getType());
+ auto *FirstTy = cast<FixedVectorType>(Cur[0]->getType());
auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext());
// TODO: It's straighforward to make up reasonable values, but listing them
// exhaustively would be insane. Come up with a couple of sensible ones.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82212.272781.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200623/d7062943/attachment.bin>
More information about the llvm-commits
mailing list