[PATCH] D144619: [WebAssembly] Skip implied bitmask operation in LowerShift

JunMa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 23:52:48 PST 2023


junparser created this revision.
junparser added reviewers: tlively, aheejin, dschuff.
Herald added subscribers: pmatos, asb, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100.
Herald added a project: All.
junparser requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144619

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  llvm/test/CodeGen/WebAssembly/masked-shifts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144619.499743.patch
Type: text/x-patch
Size: 6532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230223/6a2ae712/attachment.bin>


More information about the llvm-commits mailing list