[PATCH] D84211: [MVT] Fix getTypeForEVT for v64f16 and v128f16

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 21:16:37 PDT 2020


ctetreau created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
ctetreau added reviewers: cameron.mcinally, efriedma, sdesmalen, paulwalker-arm.

These should have half float as the element type


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84211

Files:
  llvm/lib/CodeGen/ValueTypes.cpp


Index: llvm/lib/CodeGen/ValueTypes.cpp
===================================================================
--- llvm/lib/CodeGen/ValueTypes.cpp
+++ llvm/lib/CodeGen/ValueTypes.cpp
@@ -307,9 +307,9 @@
   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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84211.279378.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200721/fdc6b4ad/attachment-0001.bin>


More information about the llvm-commits mailing list