[PATCH] D140917: [AVR] Optimize away cpi instructions when possible

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 13:26:58 PST 2023


aykevl added a comment.

I ran the TinyGo tests with this patch and all tests still pass, while code size is reduced by 0.75%.

After this patch is merged I'd like to try implementing the `sbic`/`sbis` + `rjmp` optimization and see whether it indeed reduces code size (I think it will avoid some unnecessary copies and reduce register pressure).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140917



More information about the llvm-commits mailing list