[PATCH] D36880: [GSel]: Add a cleanup combiner to cleanup legalization artifacts

Aditya Nandakumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 10:04:02 PDT 2017


aditya_nandakumar created this revision.
Herald added a subscriber: javed.absar.

Added a combiner which can clean up truncs/extends that are created in order to make the types work during legalization.

Also moved the combineMerges to the LegalizeCombiner.

Looking forward to your feedback.


Repository:
  rL LLVM

https://reviews.llvm.org/D36880

Files:
  include/llvm/CodeGen/GlobalISel/Legalizer.h
  include/llvm/CodeGen/GlobalISel/LegalizerCombine.h
  include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
  lib/CodeGen/GlobalISel/Legalizer.cpp
  lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  test/CodeGen/AArch64/GlobalISel/legalize-add.mir
  test/CodeGen/AArch64/GlobalISel/legalize-and.mir
  test/CodeGen/AArch64/GlobalISel/legalize-cmp.mir
  test/CodeGen/AArch64/GlobalISel/legalize-div.mir
  test/CodeGen/AArch64/GlobalISel/legalize-gep.mir
  test/CodeGen/AArch64/GlobalISel/legalize-itofp.mir
  test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
  test/CodeGen/AArch64/GlobalISel/legalize-mul.mir
  test/CodeGen/AArch64/GlobalISel/legalize-or.mir
  test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
  test/CodeGen/AArch64/GlobalISel/legalize-shift.mir
  test/CodeGen/AArch64/GlobalISel/legalize-simple.mir
  test/CodeGen/AArch64/GlobalISel/legalize-sub.mir
  test/CodeGen/AArch64/GlobalISel/legalize-xor.mir
  test/CodeGen/ARM/GlobalISel/arm-legalize-fp.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36880.111694.patch
Type: text/x-patch
Size: 47400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170818/b478abbd/attachment.bin>


More information about the llvm-commits mailing list