[PATCH] D57293: AMDGPU/GlobalISel: Fix RegBankSelect for GEP.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 26 12:48:42 PST 2019


arsenm created this revision.
arsenm added a reviewer: tstellar.
Herald added subscribers: volkan, t-tye, tpr, dstuttard, kristof.beyls, rovka, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

This is basically a pointer typed add, so shouldn't be any different.
This was assuming everything was an SGPR, which is not true.

      

Also cleanup legality for GEP. I don't seem to be seeing the problem
the hack marking s64 as a legal pointer type the comment mentions.


https://reviews.llvm.org/D57293

Files:
  lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
  lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  test/CodeGen/AMDGPU/GlobalISel/regbankselect-gep.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57293.183726.patch
Type: text/x-patch
Size: 6197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190126/dd30718b/attachment.bin>


More information about the llvm-commits mailing list