diff options
| author | Roland Froese <froese@ca.ibm.com> | 2019-06-24 19:27:07 +0000 |
|---|---|---|
| committer | Roland Froese <froese@ca.ibm.com> | 2019-06-24 19:27:07 +0000 |
| commit | ea08248b2bc9ab6cd14cfd1a05c4fb0fae49e97a (patch) | |
| tree | 4c890172e400fcf0130a25dbc2724ad2eb00976b /llvm/lib | |
| parent | b2f09391cf875039ab9890598c76af9db6290622 (diff) | |
| download | bcm5719-llvm-ea08248b2bc9ab6cd14cfd1a05c4fb0fae49e97a.tar.gz bcm5719-llvm-ea08248b2bc9ab6cd14cfd1a05c4fb0fae49e97a.zip | |
[CodeGen] Add missing vector type legalization for ctlz_zero_undef
Widen vector result type for ctlz_zero_undef and cttz_zero_undef the same as
ctlz and cttz.
Differential Revision: https://reviews.llvm.org/D63463
llvm-svn: 364221
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 87b5a946111..a4a80c07c2e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -2829,8 +2829,10 @@ void DAGTypeLegalizer::WidenVectorResult(SDNode *N, unsigned ResNo) { case ISD::BITREVERSE: case ISD::BSWAP: case ISD::CTLZ: + case ISD::CTLZ_ZERO_UNDEF: case ISD::CTPOP: case ISD::CTTZ: + case ISD::CTTZ_ZERO_UNDEF: case ISD::FNEG: case ISD::FCANONICALIZE: Res = WidenVecRes_Unary(N); |

