[PATCH] D69556: [CodeGen] Move ARMCodegenPrepare to TypePromotion

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 04:05:39 PDT 2019


samparker created this revision.
samparker added reviewers: SjoerdMeijer, efriedma, dmgreen, olista01.
Herald added subscribers: jfb, kristof.beyls, mgorny, srhines.

Convert ARMCodeGenPrepare into a generic type promotion pass by:

- Removing the insertion of arm specific intrinsics to handle narrow types, as we weren't using these.
- Removing ARMSubtarget references.
- Now query a generic TLI object to know which types should be promoted and what they should be promoted to.
- Move all codegen tests into Transforms folder and testing using opt and not llc, which is how they should have been written in the first place... This had the added advantage of running Alive2 on them.


https://reviews.llvm.org/D69556

Files:
  include/llvm/CodeGen/Passes.h
  include/llvm/InitializePasses.h
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/CodeGen.cpp
  lib/CodeGen/TypePromotion.cpp
  lib/Target/ARM/ARM.h
  lib/Target/ARM/ARMCodeGenPrepare.cpp
  lib/Target/ARM/ARMTargetMachine.cpp
  lib/Target/ARM/CMakeLists.txt
  test/CodeGen/ARM/CGP/arm-cgp-calls.ll
  test/CodeGen/ARM/CGP/arm-cgp-casts.ll
  test/CodeGen/ARM/CGP/arm-cgp-icmps.ll
  test/CodeGen/ARM/CGP/arm-cgp-overflow.ll
  test/CodeGen/ARM/CGP/arm-cgp-phis-ret.ll
  test/CodeGen/ARM/CGP/arm-cgp-pointers.ll
  test/CodeGen/ARM/CGP/arm-cgp-signed-icmps.ll
  test/CodeGen/ARM/CGP/arm-cgp-signed.ll
  test/CodeGen/ARM/CGP/arm-cgp-switch.ll
  test/CodeGen/ARM/CGP/clear-structures.ll
  test/CodeGen/ARM/O3-pipeline.ll
  test/Transforms/TypePromotion/ARM/calls.ll
  test/Transforms/TypePromotion/ARM/casts.ll
  test/Transforms/TypePromotion/ARM/clear-structures.ll
  test/Transforms/TypePromotion/ARM/icmps.ll
  test/Transforms/TypePromotion/ARM/lit.local.cfg
  test/Transforms/TypePromotion/ARM/phis-ret.ll
  test/Transforms/TypePromotion/ARM/pointers.ll
  test/Transforms/TypePromotion/ARM/signed-icmps.ll
  test/Transforms/TypePromotion/ARM/signed.ll
  test/Transforms/TypePromotion/ARM/switch.ll
  test/Transforms/TypePromotion/ARM/wrapping.ll
  tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69556.226866.patch
Type: text/x-patch
Size: 287558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191029/83e628c5/attachment-0001.bin>


More information about the llvm-commits mailing list