[all-commits] [llvm/llvm-project] e3d352: AMDGPU/GlobalISel: Fold constant offset vector ext...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jan 22 07:51:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3d352c54119b5d30821b4857dec77ac0af688c8
      https://github.com/llvm/llvm-project/commit/e3d352c54119b5d30821b4857dec77ac0af688c8
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-01-22 (Wed, 22 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-extract-vector-elt.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fold constant offset vector extract indexes

Handle dynamic vector extracts that use an index that's an add of a
constant offset into moving the base subregister of the indexing
operation.

Force the add into the loop in regbankselect, which will be recognized
when selected.




More information about the All-commits mailing list