[PATCH] D140572: [AVR] Optimize 32-bit shifts: reverse shift + move

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 11:21:42 PST 2022


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

This optimization turns shifts of almost a multiple of 8 into a shift
into the opposite direction. Unfortunately it doesn't compose well with
the other optimizations (I've tried) so it's separate from them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140572

Files:
  llvm/lib/Target/AVR/AVRISelLowering.cpp
  llvm/test/CodeGen/AVR/shift32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140572.484907.patch
Type: text/x-patch
Size: 11342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221222/2f8ad7b4/attachment.bin>


More information about the llvm-commits mailing list