[llvm] 4d1fd33 - [SVE] Remove calls to VectorType::getNumElements from FuzzMutate

Christopher Tetreault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 11:02:41 PDT 2020


Author: Christopher Tetreault
Date: 2020-06-23T11:02:20-07:00
New Revision: 4d1fd33561cf758be00bdbffab1b6a1a0e428fc0

URL: https://github.com/llvm/llvm-project/commit/4d1fd33561cf758be00bdbffab1b6a1a0e428fc0
DIFF: https://github.com/llvm/llvm-project/commit/4d1fd33561cf758be00bdbffab1b6a1a0e428fc0.diff

LOG: [SVE] Remove calls to VectorType::getNumElements from FuzzMutate

Reviewers: efriedma, bkramer, kmclaughlin, sdesmalen

Reviewed By: sdesmalen

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82212

Added: 
    

Modified: 
    llvm/lib/FuzzMutate/Operations.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/FuzzMutate/Operations.cpp b/llvm/lib/FuzzMutate/Operations.cpp
index d59b3ccbe50a..a37fd5454dd4 100644
--- a/llvm/lib/FuzzMutate/Operations.cpp
+++ b/llvm/lib/FuzzMutate/Operations.cpp
@@ -302,7 +302,7 @@ static SourcePred validShuffleVectorIndex() {
     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.


        


More information about the llvm-commits mailing list