[PATCH] D57812: [ARM] Add OptMinSize Subtarget feature

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 6 02:49:35 PST 2019


samparker created this revision.
samparker added reviewers: efriedma, t.p.northover, SjoerdMeijer, dmgreen.
Herald added subscribers: kristof.beyls, javed.absar.

In many places in the backend, we like to know whether we optimising for code size and this is currently performed by checking the current function attributes. A subtarget is created on a per-function basis so it's possible to know if we're compiling for code size on construction. So, I've added the OptMinSize feature, set in the same way as soft float, and allows some of the APIs to be cleaned up. I think this should also enable us to make some informed decisions in the initialisation of ARMTargetLowering too.


https://reviews.llvm.org/D57812

Files:
  lib/Target/ARM/ARM.td
  lib/Target/ARM/ARMBaseInstrInfo.cpp
  lib/Target/ARM/ARMFastISel.cpp
  lib/Target/ARM/ARMISelDAGToDAG.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.h
  lib/Target/ARM/ARMInstrInfo.cpp
  lib/Target/ARM/ARMInstrInfo.td
  lib/Target/ARM/ARMInstructionSelector.cpp
  lib/Target/ARM/ARMLoadStoreOptimizer.cpp
  lib/Target/ARM/ARMRegisterInfo.td
  lib/Target/ARM/ARMSelectionDAGInfo.cpp
  lib/Target/ARM/ARMSubtarget.cpp
  lib/Target/ARM/ARMSubtarget.h
  lib/Target/ARM/ARMTargetMachine.cpp
  lib/Target/ARM/Thumb2SizeReduction.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57812.185516.patch
Type: text/x-patch
Size: 15719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190206/47d6f080/attachment.bin>


More information about the llvm-commits mailing list