[PATCH] D39823: GlobalISel: Enable the legalization of G_MERGE_VALUES and G_UNMERGE_VALUES

Volkan Keles via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 16:26:24 PST 2017


volkan created this revision.
Herald added subscribers: igorb, javed.absar, rovka.

LegalizerInfo assumes all G_MERGE_VALUES and G_UNMERGE_VALUES instructions are legal, so it is not possible to legalize vector operations on illegal vector types. This patch fixes the problem by removing the related check and adding default actions for G_MERGE_VALUES and G_UNMERGE_VALUES.


https://reviews.llvm.org/D39823

Files:
  include/llvm/Target/GenericOpcodes.td
  lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  test/CodeGen/AArch64/GlobalISel/legalize-combines.mir
  test/CodeGen/AArch64/GlobalISel/legalize-merge-values.mir
  test/CodeGen/AArch64/GlobalISel/legalize-unmerge-values.mir
  test/CodeGen/AArch64/GlobalISel/no-regclass.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39823.122175.patch
Type: text/x-patch
Size: 7354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/92bd3344/attachment-0001.bin>


More information about the llvm-commits mailing list