[PATCH] D115594: [AVR] Optimize int16 shift operation for shift amount greater than 8

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 11 23:59:56 PST 2021


benshi001 created this revision.
benshi001 added reviewers: dylanmckay, aykevl.
Herald added subscribers: Jim, hiraditya.
benshi001 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Skip operation on the lower byte in int16 logical left shift when
shift amount is greater than 8.

Skip operation on the higher byte in int16 logical & arithmetic
right shift when shift amount is greater than 8.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115594

Files:
  llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
  llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115594.393723.patch
Type: text/x-patch
Size: 6167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211212/57e8bacd/attachment.bin>


More information about the llvm-commits mailing list