[PATCH] D77906: [SVE] Remove calls to getBitWidth from mips
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 13:59:04 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, psnobl, rkruppe, atanasyan, jrtc27, hiraditya, tschuett, arichardson, sdardis.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77906
Files:
llvm/lib/Target/Mips/MipsISelLowering.cpp
Index: llvm/lib/Target/Mips/MipsISelLowering.cpp
===================================================================
--- llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -3948,7 +3948,7 @@
break;
case 'f': // FPU or MSA register
if (Subtarget.hasMSA() && type->isVectorTy() &&
- cast<VectorType>(type)->getBitWidth() == 128)
+ type->getPrimitiveSizeInBits().getFixedSize() == 128)
weight = CW_Register;
else if (type->isFloatTy())
weight = CW_Register;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77906.256657.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/68c707a6/attachment-0001.bin>
More information about the llvm-commits
mailing list