[llvm] ae35c09 - [MVT] Fix getTypeForEVT for v64f16 and v128f16

Christopher Tetreault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 14:27:45 PDT 2020


Author: Christopher Tetreault
Date: 2020-07-22T14:27:08-07:00
New Revision: ae35c09c34f0d2701c01d3ebacd0d56163cfbe0b

URL: https://github.com/llvm/llvm-project/commit/ae35c09c34f0d2701c01d3ebacd0d56163cfbe0b
DIFF: https://github.com/llvm/llvm-project/commit/ae35c09c34f0d2701c01d3ebacd0d56163cfbe0b.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/CodeGen/ValueTypes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/ValueTypes.cpp b/llvm/lib/CodeGen/ValueTypes.cpp
index 66bcdd9b2c4a..57e26e8cb7a1 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:


        


More information about the llvm-commits mailing list