[PATCH] D84100: [ARM] Optimize immediate selection

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 07:30:27 PDT 2020


benshi001 added a comment.

This patch does two optimization:

1. mov Rx, 0x1ffff

before:

  ldr
  ...
  .long ...

after:

  mov Rx, # 0x20000
  sub Rx, Rx, 1

2. add Rx, Rx, # 0x1ffff

before

  ldr
  add
  ...
  .long ...

after:

  add Rx, # 0x20000
  sub Rx, # 1


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84100





More information about the llvm-commits mailing list