diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-03-31 19:42:04 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-03-31 19:42:04 +0000 |
| commit | 569efd2cfd28a8d9c68fe15f3b7dd6bfa8217aa2 (patch) | |
| tree | 21e434d32a4e0fe08a4b5074ef574d0a5bf76166 /llvm/lib | |
| parent | e97fb414e8ec2dd69c0f96d748035569c40b625f (diff) | |
| download | bcm5719-llvm-569efd2cfd28a8d9c68fe15f3b7dd6bfa8217aa2.tar.gz bcm5719-llvm-569efd2cfd28a8d9c68fe15f3b7dd6bfa8217aa2.zip | |
[ARM] Expand v1i64 and v2i64 ctpop.
The default is legal, which results in 'Cannot select' errors. This is
triggered during selfhost due to a recent cost model change.
llvm-svn: 265040
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 8bdb32acbef..ecf15d3bd6f 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -577,6 +577,8 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM, setOperationAction(ISD::CTPOP, MVT::v4i32, Custom); setOperationAction(ISD::CTPOP, MVT::v4i16, Custom); setOperationAction(ISD::CTPOP, MVT::v8i16, Custom); + setOperationAction(ISD::CTPOP, MVT::v1i64, Expand); + setOperationAction(ISD::CTPOP, MVT::v2i64, Expand); // NEON does not have single instruction CTTZ for vectors. setOperationAction(ISD::CTTZ, MVT::v8i8, Custom); |

