[PATCH] D80325: [SVE] Eliminate calls to default-false VectorType::get() from FuzzMutate

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 13:13:55 PDT 2020


ctetreau updated this revision to Diff 267005.
ctetreau added a comment.

rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80325/new/

https://reviews.llvm.org/D80325

Files:
  llvm/lib/FuzzMutate/Operations.cpp


Index: llvm/lib/FuzzMutate/Operations.cpp
===================================================================
--- llvm/lib/FuzzMutate/Operations.cpp
+++ llvm/lib/FuzzMutate/Operations.cpp
@@ -306,8 +306,8 @@
     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.
-    return std::vector<Constant *>{
-        UndefValue::get(VectorType::get(Int32Ty, FirstTy->getNumElements()))};
+    return std::vector<Constant *>{UndefValue::get(
+        FixedVectorType::get(Int32Ty, FirstTy->getNumElements()))};
   };
   return {Pred, Make};
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80325.267005.patch
Type: text/x-patch
Size: 700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/724fa7e0/attachment.bin>


More information about the llvm-commits mailing list