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

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rGae35c09c34f0: [MVT] Fix getTypeForEVT for v64f16 and v128f16 (authored by ctetreau).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84211/new/

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.279944.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200722/896c901b/attachment.bin>


More information about the llvm-commits mailing list