[PATCH] D64856: [MIPS GlobalISel] ClampScalar and select pointer G_ICMP

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 02:35:07 PDT 2019


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, volkan, jrtc27, arichardson, rovka, sdardis.
Herald added a project: LLVM.

Add narrowScalar to half of original size for G_ICMP.
ClampScalar G_ICMP's operands 2 and 3 to to s32.
Select G_ICMP for pointers for MIPS32. Pointer compare is same
as for integers, it is enough to declare them as legal type.


Repository:
  rL LLVM

https://reviews.llvm.org/D64856

Files:
  lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  lib/Target/Mips/MipsLegalizerInfo.cpp
  test/CodeGen/Mips/GlobalISel/instruction-select/icmp.mir
  test/CodeGen/Mips/GlobalISel/legalizer/icmp.mir
  test/CodeGen/Mips/GlobalISel/llvm-ir/icmp.ll
  test/CodeGen/Mips/GlobalISel/regbankselect/icmp.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64856.210276.patch
Type: text/x-patch
Size: 61214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190717/5944fd58/attachment.bin>


More information about the llvm-commits mailing list