[globalisel][aarch64] Fix unintended assumptions about PartialMappingIdx. NFC.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 6 Dec 2016 14:39:57 +0000 (14:39 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 6 Dec 2016 14:39:57 +0000 (14:39 +0000)
commit4fd1e7c628b6048b8c0f455bbe06b8c8c614335e
tree2b8e2b854bf9116f1507753006eaa52e5de25338
parent1b8eb4104b6198785c164be4a451fc04e03bd371
[globalisel][aarch64] Fix unintended assumptions about PartialMappingIdx. NFC.

Summary:
This is NFC but prevents assertions when PartialMappingIdx is tablegen-erated.
The assumptions were:
1) FirstGPR is 0
2) FirstGPR is the first of the First* enumerators.

GPR32 is changed to 1 to demonstrate that assumption #1 is fixed. #2 will
be covered by a subsequent patch that tablegen-erates information and swaps
the order of GPR and FPR as a side effect.

Depends on D27336

Reviewers: ab, t.p.northover, qcolombet

Subscribers: aemerson, rengolin, vkalintiris, dberris, rovka, llvm-commits

Differential Revision: https://reviews.llvm.org/D27337

llvm-svn: 288812
llvm/lib/Target/AArch64/AArch64GenRegisterBankInfo.def
llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp