From ae35c09c34f0d2701c01d3ebacd0d56163cfbe0b Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Wed, 22 Jul 2020 13:44:47 -0700 Subject: [PATCH] [MVT] Fix getTypeForEVT for v64f16 and v128f16 Summary: These should have half float as the element type Reviewers: cameron.mcinally, efriedma, sdesmalen, paulwalker-arm Reviewed By: paulwalker-arm Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D84211 --- llvm/lib/CodeGen/ValueTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/ValueTypes.cpp b/llvm/lib/CodeGen/ValueTypes.cpp index 66bcdd9..57e26e8c 100644 --- a/llvm/lib/CodeGen/ValueTypes.cpp +++ b/llvm/lib/CodeGen/ValueTypes.cpp @@ -307,9 +307,9 @@ Type *EVT::getTypeForEVT(LLVMContext &Context) const { case MVT::v32f16: return FixedVectorType::get(Type::getHalfTy(Context), 32); case MVT::v64f16: - return FixedVectorType::get(Type::getBFloatTy(Context), 64); + return FixedVectorType::get(Type::getHalfTy(Context), 64); case MVT::v128f16: - return FixedVectorType::get(Type::getBFloatTy(Context), 128); + return FixedVectorType::get(Type::getHalfTy(Context), 128); case MVT::v2bf16: return FixedVectorType::get(Type::getBFloatTy(Context), 2); case MVT::v3bf16: -- 2.7.4