diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-04-23 02:49:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-04-23 02:49:25 +0000 |
commit | b297b6b0c930771067170ebd966fbe293899c0c2 (patch) | |
tree | 6c900181e34e0c6466fdfede25eb81145b22d2b9 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | |
parent | 70e2766fb4fcca4ab232fd924d2425921539bd74 (diff) | |
download | llvm-b297b6b0c930771067170ebd966fbe293899c0c2.zip llvm-b297b6b0c930771067170ebd966fbe293899c0c2.tar.gz llvm-b297b6b0c930771067170ebd966fbe293899c0c2.tar.bz2 |
[WebAssembly] Set ctlz_zero_undef/cttz_zero_undef to Expand so LegalizeDAG will convert them to ctlz/cttz. Remove the now unneccessary isel patterns. NFC
llvm-svn: 267264
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index 4839a32..dadd312 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -97,7 +97,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering( {ISD::BSWAP, ISD::SMUL_LOHI, ISD::UMUL_LOHI, ISD::MULHS, ISD::MULHU, ISD::SDIVREM, ISD::UDIVREM, ISD::SHL_PARTS, ISD::SRA_PARTS, ISD::SRL_PARTS, ISD::ADDC, ISD::ADDE, ISD::SUBC, - ISD::SUBE}) { + ISD::SUBE, ISD::CTLZ_ZERO_UNDEF, ISD::CTTZ_ZERO_UNDEF}) { setOperationAction(Op, T, Expand); } } |