[PATCH] D96013: GlobalISel: Try to combine G_[SU]DIV and G_[SU]REM

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 04:32:46 PST 2021


cdevadas updated this revision to Diff 322343.
cdevadas added a comment.

Addressed the review comments:

  Made the combiner pattern generic.
  Added the necessary legalization check.
  Legalized the G_[SU]DIVREM instruction.
  Added vector tests and some negative tests.
  Added two new tests for post-legalizer and legalizer-helper.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96013

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
  llvm/include/llvm/Support/TargetOpcodes.def
  llvm/include/llvm/Target/GenericOpcodes.td
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-divrem.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir
  llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96013.322343.patch
Type: text/x-patch
Size: 44996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210209/d95331eb/attachment.bin>


More information about the llvm-commits mailing list