[PATCH] D96506: [AVR] Optimize 16-bit shifts
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 07:33:16 PST 2021
benshi001 added a comment.
For `int >> 9`, the following instructions are genreated
mov r24, r25
clr r25
lsr r25
ror r24
However the `ror` is unecessary, it can be simpilfied to
mov r24, r25
clr r25
lsr r24
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96506/new/
https://reviews.llvm.org/D96506
More information about the llvm-commits
mailing list