https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66511
Wilhelm M <klaus.doldinger64 at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |klaus.doldinger64@googlemai
| |l.com
--- Comment #5 from Wilhelm M <klaus.doldinger64 at googlemail dot com> ---
(In reply to Roger Sayle from comment #4)
> Created attachment 54871 [details]
> proposed patch
>
> Proposed patch, using a peephole2 in avr-dimode.md to inline calls to
> __lshrdi3 that require only a single instruction or two (due to truncation).
> For truncations to char, this is smaller and faster, and for truncations to
> unsigned short this is the same size, but faster. The drawback is that
> performing this late (in peephole2) doesn't eliminate the stack frame
> prolog/epilog. Thoughts?
Looks good to me.
Many thanks!