[PATCH] D13477: AMDGPU: Use explicit register size indirect pseudos

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 09:26:41 PDT 2015


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

This stops using an unknown reg class operand.
    
Currently build_vector selection has a broken looking check
where it tries to use a VGPR reg class and an SGPR one if it
sees an SGPR use.
    
With the source operand has an explicit VGPR class,
illegal copies will be inserted that SIFixSGPRCopies will take care
of normally later, which will allow removing the weird check
of build_vector users. Without this, when removed v_movrels_b32 would
still be emitted even though all of the values were only stored in
SGPRs.


http://reviews.llvm.org/D13477

Files:
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstructions.td
  lib/Target/AMDGPU/SILowerControlFlow.cpp
  test/CodeGen/AMDGPU/indirect-addressing-si.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13477.36633.patch
Type: text/x-patch
Size: 8366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151006/3d3d5185/attachment.bin>


More information about the llvm-commits mailing list