forked from OSchip/llvm-project
[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
This commit is contained in:
parent
e75325cfc3
commit
c8f1aca316
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue