[PATCH] D60640: AMDGPU/GlobalISel: Implement select for G_ICMP and G_SELECT

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 19:26:05 PDT 2019


tstellar marked an inline comment as done.
tstellar added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp:86-87
+
+  // Special case for COPY from the scc register bank.  The scc register bank
+  // is modeled using 32-bit sgprs.
+  const MachineOperand &Src = I.getOperand(1);
----------------
arsenm wrote:
> This isn't true, or at least isn't supposed to be. The SCC bank needs to be distinct from a 1-bit value in an SGPR bank
When we select scc uses/defs, we need to copy the value from/to an 32-bit sgpr to handle the case where there are 2 scc values live at the same time.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60640/new/

https://reviews.llvm.org/D60640





More information about the llvm-commits mailing list