[PATCH] D83745: [ARM] Optimize immediate selection

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 07:04:23 PDT 2020


benshi001 added a comment.

There is another benefit for that case

%x = %y - 0x23ff23

previous llvm will generate 3 items
ldr ...
add ...
a constant in the poll

with my patch, only 2 items are generated
sub %x, %y, 0x240000
add %x, %x, 0x0000dd

one word will be saved.


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

https://reviews.llvm.org/D83745





More information about the llvm-commits mailing list