[PATCH] D106672: [AMDGPU][GlobalIsel] Fix unable to legalize G_CONCAT_VECTORS when loading a vector.

Mateja Marjanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 23 08:24:11 PDT 2021


matejam created this revision.
matejam added reviewers: foad, arsenm, Petar.Avramovic, mbrkusanin.
matejam added a project: LLVM.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
matejam requested review of this revision.
Herald added a subscriber: wdng.

Avoid building illegal G_CONCAT_VECTORS or G_BUILD_VECTOR instructions.
This happens when G_CONCAT_VECTORS or G_BUILD_VECTOR instructions aren't legal with the LCM (Least Common Multiple) type and
GCD (Greatest Common Divisor) type as their types.


https://reviews.llvm.org/D106672

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106672.361223.patch
Type: text/x-patch
Size: 154929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/726ef822/attachment-0001.bin>


More information about the llvm-commits mailing list