[MVT] Fix getTypeForEVT for v64f16 and v128f16
authorChristopher Tetreault <ctetreau@quicinc.com>
Wed, 22 Jul 2020 20:44:47 +0000 (13:44 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Wed, 22 Jul 2020 21:27:08 +0000 (14:27 -0700)
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

index 66bcdd9..57e26e8 100644 (file)
@@ -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: