[llvm] e8f815a - [SVE] Eliminate calls to default-false VectorType::get() from FuzzMutate
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 13:58:18 PDT 2020
Author: Christopher Tetreault
Date: 2020-06-09T13:57:36-07:00
New Revision: e8f815a494e285d46f2f885265a8a2cc5b3eaddd
URL: https://github.com/llvm/llvm-project/commit/e8f815a494e285d46f2f885265a8a2cc5b3eaddd
DIFF: https://github.com/llvm/llvm-project/commit/e8f815a494e285d46f2f885265a8a2cc5b3eaddd.diff
LOG: [SVE] Eliminate calls to default-false VectorType::get() from FuzzMutate
Reviewers: efriedma, kmclaughlin, sdesmalen, bogner, chandlerc, c-rhodes, david-arm, fpetrogalli
Reviewed By: c-rhodes
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80325
Added:
Modified:
llvm/lib/FuzzMutate/Operations.cpp
Removed:
################################################################################
diff --git a/llvm/lib/FuzzMutate/Operations.cpp b/llvm/lib/FuzzMutate/Operations.cpp
index 43255e16140a..d59b3ccbe50a 100644
--- a/llvm/lib/FuzzMutate/Operations.cpp
+++ b/llvm/lib/FuzzMutate/Operations.cpp
@@ -306,8 +306,8 @@ static SourcePred validShuffleVectorIndex() {
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};
}
More information about the llvm-commits
mailing list