OSDN Git Service

[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)
commitcef5592d6d7e080036378d899a58a9c4e4cabcb1
tree0fd497b37ed8244c6f1c19312607998794e580c9
parent462ab869ac92ea0488eb01145593ff830ef378fe
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288812 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64GenRegisterBankInfo.def
lib/Target/AArch64/AArch64RegisterBankInfo.cpp