diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-09-14 16:37:15 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-09-14 16:37:15 +0000 |
commit | 1ed771f5d7e68c868807f3b59e18f36dd50b0fbf (patch) | |
tree | 34e0f93dcb6c1ef93d20f2b037cb470f8634215c /llvm/lib/Target/Mips | |
parent | d10a5ea19ece4b5d77fb548c04b782966de873a7 (diff) | |
download | bcm5719-llvm-1ed771f5d7e68c868807f3b59e18f36dd50b0fbf.tar.gz bcm5719-llvm-1ed771f5d7e68c868807f3b59e18f36dd50b0fbf.zip |
getVectorElementType().getSizeInBits() -> getScalarSizeInBits() ; NFCI
llvm-svn: 281495
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r-- | llvm/lib/Target/Mips/MipsSEISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp b/llvm/lib/Target/Mips/MipsSEISelLowering.cpp index 73c461ba9f0..5964aa7cd1e 100644 --- a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsSEISelLowering.cpp @@ -852,7 +852,7 @@ static SDValue performDSPShiftCombine(unsigned Opc, SDNode *N, EVT Ty, APInt SplatValue, SplatUndef; unsigned SplatBitSize; bool HasAnyUndefs; - unsigned EltSize = Ty.getVectorElementType().getSizeInBits(); + unsigned EltSize = Ty.getScalarSizeInBits(); BuildVectorSDNode *BV = dyn_cast<BuildVectorSDNode>(N->getOperand(1)); if (!Subtarget.hasDSP()) @@ -1504,7 +1504,7 @@ static SDValue lowerMSABitClear(SDValue Op, SelectionDAG &DAG) { static SDValue lowerMSABitClearImm(SDValue Op, SelectionDAG &DAG) { SDLoc DL(Op); EVT ResTy = Op->getValueType(0); - APInt BitImm = APInt(ResTy.getVectorElementType().getSizeInBits(), 1) + APInt BitImm = APInt(ResTy.getScalarSizeInBits(), 1) << cast<ConstantSDNode>(Op->getOperand(2))->getAPIntValue(); SDValue BitMask = DAG.getConstant(~BitImm, DL, ResTy); |