Skip to content

Commit

Permalink
[globalisel][tablegen] Fix vector element size
Browse files Browse the repository at this point in the history
Summary: Fix vector element size.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: rovka, llvm-commits, kristof.beyls

Differential Revision: https://reviews.llvm.org/D32537

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301421 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Igor Breger committed Apr 26, 2017
1 parent 86d385f commit a620093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/TableGen/GlobalISelEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class LLTCodeGen {
return;
}
if (Ty.isVector()) {
OS << "LLT::vector(" << Ty.getNumElements() << ", " << Ty.getSizeInBits()
OS << "LLT::vector(" << Ty.getNumElements() << ", " << Ty.getScalarSizeInBits()
<< ")";
return;
}
Expand Down

0 comments on commit a620093

Please sign in to comment.