From 17e1df44ec672654a5900b566d0010625c5fc3a2 Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Mon, 20 Apr 2020 13:58:02 -0700 Subject: [PATCH] [SVE] Remove calls to getBitWidth from mips Reviewers: efriedma, ahatanak, sdesmalen, c-rhodes, david-arm Reviewed By: efriedma Subscribers: dexonsmith, sdardis, arichardson, tschuett, hiraditya, jrtc27, atanasyan, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77906 --- llvm/lib/Target/Mips/MipsISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index 7a89ac2..d305c1c 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -3948,7 +3948,7 @@ MipsTargetLowering::getSingleConstraintMatchWeight( break; case 'f': // FPU or MSA register if (Subtarget.hasMSA() && type->isVectorTy() && - cast(type)->getBitWidth() == 128) + type->getPrimitiveSizeInBits().getFixedSize() == 128) weight = CW_Register; else if (type->isFloatTy()) weight = CW_Register; -- 2.7.4