]> granicus.if.org Git - llvm/commitdiff
Merging r243661:
authorTom Stellard <thomas.stellard@amd.com>
Mon, 16 Nov 2015 17:23:23 +0000 (17:23 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 16 Nov 2015 17:23:23 +0000 (17:23 +0000)
------------------------------------------------------------------------
r243661 | Matthew.Arsenault | 2015-07-30 13:03:11 -0400 (Thu, 30 Jul 2015) | 6 lines

AMDGPU: Set SubRegIndex size and offset

I'm not sure what reasons the comment here could have
had for not setting these. Without these set, there is
an assertion hit during DWARF emission.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@253230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AMDGPURegisterInfo.td

index 835a1464395c3a627fe9db56ba190fbaeefd2939..ba0490abee8ca5098f92df68aa8af10d29901d13 100644 (file)
@@ -14,8 +14,7 @@
 let Namespace = "AMDGPU" in {
 
 foreach Index = 0-15 in {
-  // Indices are used in a variety of ways here, so don't set a size/offset.
-  def sub#Index : SubRegIndex<-1, -1>;
+  def sub#Index : SubRegIndex<32, !shl(Index, 5)>;
 }
 
 def INDIRECT_BASE_ADDR : Register <"INDIRECT_BASE_ADDR">;