[PATCH] D89047: [AVR] Optimize 8-bit logic left/right shifts
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 05:23:49 PST 2020
benshi001 marked an inline comment as done.
benshi001 added inline comments.
================
Comment at: llvm/lib/Target/AVR/AVRISelLowering.cpp:353
+ // TODO
+ // } else if (Op.getOpcode() == ISD::SHL && ShiftAmount == 7) {
+ // } else if (Op.getOpcode() == ISD::SRL && ShiftAmount == 7) {
----------------
dylanmckay wrote:
> > Now llvm-avr generates the same asm for 8-bit shifts as AVR-GCC does, when ShiftAmount = 1,2,3,4,5,6, 7.
>
> This suggests that either this `TODO` comment is now unnecessary, or there is another optimization that could be implemented specifically for 7-bit shifts that AVR-GCC does not implement.
>
> Remove the TODO comment, or, if you feel it is important, add a sentence describing the TODO
The TODO is removed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89047/new/
https://reviews.llvm.org/D89047
More information about the llvm-commits
mailing list