[PATCH] D31411: AMDGPU: Use MachineRegisterInfo to find max used register

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 17:12:56 PDT 2017


arsenm created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

Avoid looping through program to determine register counts.
This avoids needing to look at regmask operands.

      

Also fixes some counting errors with flat_scr when there
are no stack objects.


https://reviews.llvm.org/D31411

Files:
  lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  lib/Target/AMDGPU/AMDGPUAsmPrinter.h
  test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll
  test/CodeGen/AMDGPU/exceed-max-sgprs.ll
  test/CodeGen/AMDGPU/flat-scratch-reg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31411.93201.patch
Type: text/x-patch
Size: 15338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170328/52541b9a/attachment-0001.bin>


More information about the llvm-commits mailing list