[PATCH] D11702: AMDGPU: Make scc not allocatable

Matt Arsenault Matthew.Arsenault at amd.com
Sat Aug 1 00:01:23 PDT 2015


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

This fixes an assertion in the SIInsertWait pass when i32 is removed from scc.

http://reviews.llvm.org/D11702

Files:
  lib/Target/AMDGPU/SIRegisterInfo.td

Index: lib/Target/AMDGPU/SIRegisterInfo.td
===================================================================
--- lib/Target/AMDGPU/SIRegisterInfo.td
+++ lib/Target/AMDGPU/SIRegisterInfo.td
@@ -184,6 +184,7 @@
 
 // Special register classes for predicates and the M0 register
 def SCCReg : RegisterClass<"AMDGPU", [i32, i1], 32, (add SCC)> {
+  let isAllocatable = 0;
   let CopyCost = -1; // Theoretically it is possible to read from SCC,
                      // but it should never be necessary.
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11702.31190.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150801/9fadc140/attachment.bin>


More information about the llvm-commits mailing list