[all-commits] [llvm/llvm-project] 5cabb8: AMDGPU/GlobalISel: Fix G_EXTRACT_VECTOR_ELT mappin...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jan 9 16:51:45 PST 2020


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

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.h
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix G_EXTRACT_VECTOR_ELT mapping for s-v case

If an SGPR vector is indexed with a VGPR, the actual indexing will be
done on the SGPR and produce an SGPR. A copy needs to be inserted
inside the waterwall loop to the VGPR result.




More information about the All-commits mailing list