[PATCH] D72201: AMDGPU/GlobalISel: Fold add of constant into G_INSERT_VECTOR_ELT

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 08:35:34 PST 2020


arsenm created this revision.
arsenm added reviewers: tstellar, nhaehnle, kerbowa.
Herald added subscribers: Petar.Avramovic, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.
arsenm added parent revisions: D72200: AMDGPU/GlobalISel: Select G_INSERT_VECTOR_ELT, D72192: AMDGPU/GlobalISel: Fix RegBankSelect for G_INSERT_VECTOR_ELT.

Move the subregister base like in the extract case.


https://reviews.llvm.org/D72201

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-insert-vector-elt.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72201.236177.patch
Type: text/x-patch
Size: 51025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200104/e10f70e0/attachment.bin>


More information about the llvm-commits mailing list