Skip to content

Commit

Permalink
[MVT] Fix getTypeForEVT for v64f16 and v128f16
Browse files Browse the repository at this point in the history
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
  • Loading branch information
christetreault-llvm committed Jul 22, 2020
1 parent 388c9fb commit ae35c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/CodeGen/ValueTypes.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit ae35c09

Please sign in to comment.