[PATCH] D30324: [ARM] Thumb2: favor R4-R7 over R12/LR in allocation order when opt for minsize

Oliver Stannard (Linaro) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 05:36:18 PDT 2019


ostannard updated this revision to Diff 207525.
ostannard edited the summary of this revision.
ostannard edited reviewers, added: dmgreen; removed: jmolloy.
ostannard added a comment.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

- Rebase onto trunk.
- Move all controlling conditions into ARMSubtarget
- Remove command-line option (the only reason to disable this is benchmarking it)
- Simplify test with inline asm, should be more robust

This is giving me ~0.1% code size reduction on SPEC2006 (comparing -Oz without this patch to -Oz with it), and ~0.25% reduction on 8 mbed-os examples.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D30324

Files:
  llvm/include/llvm/CodeGen/TargetSubtargetInfo.h
  llvm/lib/CodeGen/RegisterClassInfo.cpp
  llvm/lib/Target/ARM/ARMRegisterInfo.td
  llvm/lib/Target/ARM/ARMSubtarget.cpp
  llvm/lib/Target/ARM/ARMSubtarget.h
  llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30324.207525.patch
Type: text/x-patch
Size: 6634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190702/41761da6/attachment.bin>


More information about the llvm-commits mailing list