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/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
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/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index 4681d5b6753..fd433e3d9bf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -817,8 +817,8 @@ SDValue VectorLegalizer::ExpandSIGN_EXTEND_VECTOR_INREG(SDValue Op) { // Now we need sign extend. Do this by shifting the elements. Even if these // aren't legal operations, they have a better chance of being legalized // without full scalarization than the sign extension does. - unsigned EltWidth = VT.getVectorElementType().getSizeInBits(); - unsigned SrcEltWidth = SrcVT.getVectorElementType().getSizeInBits(); + unsigned EltWidth = VT.getScalarSizeInBits(); + unsigned SrcEltWidth = SrcVT.getScalarSizeInBits(); SDValue ShiftAmount = DAG.getConstant(EltWidth - SrcEltWidth, DL, VT); return DAG.getNode(ISD::SRA, DL, VT, DAG.getNode(ISD::SHL, DL, VT, Op, ShiftAmount), |