[WebAssembly] Skip implied bitmask operation in LowerShift
authorJun Ma <JunMa@linux.alibaba.com>
Thu, 23 Feb 2023 07:45:48 +0000 (15:45 +0800)
committerJun Ma <JunMa@linux.alibaba.com>
Thu, 2 Mar 2023 01:37:25 +0000 (09:37 +0800)
commit403926aefefb13553f89ad812b1e2385826a82ec
treeba5d472909d9ae9181d53161e1ea7fd1ed280965
parentaf2969fd46b71147f70c8795892f1b834259a0cb
[WebAssembly] Skip implied bitmask operation in LowerShift

This patch skips redundant explicit masks of the shift count since
it is implied inside wasm shift instruction.

Differential Revision: https://reviews.llvm.org/D144619
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/test/CodeGen/WebAssembly/masked-shifts.ll