diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-10-13 15:16:55 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-10-13 15:16:55 +0000 |
commit | 1c2051ead7fa9eaee3f7e21b5e7cf4915a7232b3 (patch) | |
tree | 16b8d432480026bf11790113197675a98bce319f /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 1c6d3203510bcae9680e8e721919341da063c915 (diff) | |
download | bcm5719-llvm-1c2051ead7fa9eaee3f7e21b5e7cf4915a7232b3.tar.gz bcm5719-llvm-1c2051ead7fa9eaee3f7e21b5e7cf4915a7232b3.zip |
[X86][SSE] Begin removing vector CTTZ custom lowering and use LegalizeDAG instead.
Adds CTTZ vector legalization support and begins the removal of the X86/SSE custom lowering.
llvm-svn: 344453
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 56025110f0a..884d7174440 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2794,7 +2794,7 @@ SDValue SelectionDAGLegalize::ExpandBitCount(unsigned Opc, SDValue Op, // This trivially expands to CTTZ. return DAG.getNode(ISD::CTTZ, dl, VT, Op); case ISD::CTTZ: { - unsigned Len = VT.getSizeInBits(); + unsigned Len = VT.getScalarSizeInBits(); if (TLI.isOperationLegalOrCustom(ISD::CTTZ_ZERO_UNDEF, VT)) { EVT SetCCVT = getSetCCResultType(VT); |