[llvm] c8f1aca - [SVE] Eliminate calls to default-false VectorType::get() from Utils
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 15:01:35 PDT 2020
Author: Christopher Tetreault
Date: 2020-05-29T15:01:18-07:00
New Revision: c8f1aca316c2ee02347752079b86ba2322a6cf72
URL: https://github.com/llvm/llvm-project/commit/c8f1aca316c2ee02347752079b86ba2322a6cf72
DIFF: https://github.com/llvm/llvm-project/commit/c8f1aca316c2ee02347752079b86ba2322a6cf72.diff
LOG: [SVE] Eliminate calls to default-false VectorType::get() from Utils
Reviewers: efriedma, c-rhodes, sdesmalen, xbolva00
Reviewed By: c-rhodes
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80337
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index c32db981ee7c..6ad8bc6e0942 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -2107,7 +2107,7 @@ static void insertSinCosCall(IRBuilderBase &B, Function *OrigCallee, Value *Arg,
// x86_64 can't use {float, float} since that would be returned in both
// xmm0 and xmm1, which isn't what a real struct would do.
ResTy = T.getArch() == Triple::x86_64
- ? static_cast<Type *>(VectorType::get(ArgTy, 2))
+ ? static_cast<Type *>(FixedVectorType::get(ArgTy, 2))
: static_cast<Type *>(StructType::get(ArgTy, ArgTy));
} else {
Name = "__sincospi_stret";
More information about the llvm-commits
mailing list