Skip to content

Commit 594e6ef

Browse files
committed
Merging r243661:
------------------------------------------------------------------------ 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
1 parent 8a79448 commit 594e6ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Target/AMDGPU/AMDGPURegisterInfo.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
let Namespace = "AMDGPU" in {
1515

1616
foreach Index = 0-15 in {
17-
// Indices are used in a variety of ways here, so don't set a size/offset.
18-
def sub#Index : SubRegIndex<-1, -1>;
17+
def sub#Index : SubRegIndex<32, !shl(Index, 5)>;
1918
}
2019

2120
def INDIRECT_BASE_ADDR : Register <"INDIRECT_BASE_ADDR">;

0 commit comments

Comments
 (0)