[PATCH] D58511: AMDGPU: Don't look for constant in insert/extract_vector_elt regbankselect
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 08:10:57 PST 2019
arsenm created this revision.
arsenm added reviewers: tstellar, rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
The constantness shouldn't change the register bank choice. We also
don't need to restrict this to only indexing VGPRs, since it's
possible to index SGPRs (but SelectionDAG made using this
difficult). Allow directly indexing SGPRs when appropriate.
https://reviews.llvm.org/D58511
Files:
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir
test/CodeGen/AMDGPU/GlobalISel/regbankselect-insert-vector-elt.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58511.187800.patch
Type: text/x-patch
Size: 19115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190221/5b716a4f/attachment.bin>
More information about the llvm-commits
mailing list