diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-04-28 03:34:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-04-28 03:34:31 +0000 |
commit | 33772c53754bd27af1ce41379def536fc1de7fb0 (patch) | |
tree | 90695f7cd1b8952186dd169e15cea30e312247a8 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | |
parent | 7626f778a567767690b279420037b7f11f2e4748 (diff) | |
download | bcm5719-llvm-33772c53754bd27af1ce41379def536fc1de7fb0.tar.gz bcm5719-llvm-33772c53754bd27af1ce41379def536fc1de7fb0.zip |
[CodeGen] Default CTTZ_ZERO_UNDEF/CTLZ_ZERO_UNDEF to Expand in TargetLoweringBase. This is what the majority of the targets want and removes a bunch of code. Set it to Legal explicitly in the few cases where that's the desired behavior.
llvm-svn: 267853
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 dadd3125c70..4839a324214 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::CTLZ_ZERO_UNDEF, ISD::CTTZ_ZERO_UNDEF}) { + ISD::SUBE}) { setOperationAction(Op, T, Expand); } } |