[PATCH] D89047: [AVR] Optimize logic left/right shift

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 07:32:11 PDT 2020


benshi001 added a comment.

The original AVR backend TD is also wrong, that it maps the bswap IR to AVR's swap instruction.

Since the IR bswap is byte level operation, which requires the minimal data type to be at least 16-bit.

But AVR's swap performs on half-byte level.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89047/new/

https://reviews.llvm.org/D89047



More information about the llvm-commits mailing list