[PATCH] D74928: AMDGPU/GlobalISel: Fix handling of G_ANYEXT with s1 source

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 14:05:06 PST 2020


arsenm created this revision.
arsenm added reviewers: foad, nhaehnle, kerbowa, hsmhsm, cdevadas.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

We were letting G_ANYEXT with a vcc register bank through, which was
incorrect and would select to an invalid copy. Fix this up like G_ZEXT
and G_SEXT. Also drop old code to fixup the non-boolean case in
RegBankSelect. We now have to perform that expansion during selection,
so there's no benefit to doing it during RegBankSelect.


https://reviews.llvm.org/D74928

Files:
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-anyext.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-sext.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-zext.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74928.245737.patch
Type: text/x-patch
Size: 17922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200220/2fe4337b/attachment.bin>


More information about the llvm-commits mailing list