[all-commits] [llvm/llvm-project] 61e7a6: [AMDGPU] Allow folding of sgpr to vgpr copy

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Wed Oct 23 18:54:00 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 61e7a61bdccfae2c55e1ab598621204030feac7a
      https://github.com/llvm/llvm-project/commit/61e7a61bdccfae2c55e1ab598621204030feac7a
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2019-10-23 (Wed, 23 Oct 2019)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/fold-vgpr-copy.mir
    M llvm/test/CodeGen/AMDGPU/saddo.ll

  Log Message:
  -----------
  [AMDGPU] Allow folding of sgpr to vgpr copy

Potentially sgpr to sgpr copy should also be possible.
That is however trickier because we may end up with a
wrong register class at use because of xm0/xexec permutations.

Differential Revision: https://reviews.llvm.org/D69280




More information about the All-commits mailing list