mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 14:46:39 +00:00
[ARM] Use the efficient version of BitVector::set and a static_assert.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10387d22ff
commit
5f2bc6c766
@ -167,9 +167,8 @@ getReservedRegs(const MachineFunction &MF) const {
|
||||
Reserved.set(ARM::R9);
|
||||
// Reserve D16-D31 if the subtarget doesn't support them.
|
||||
if (!STI.hasVFP3() || STI.hasD16()) {
|
||||
assert(ARM::D31 == ARM::D16 + 15);
|
||||
for (unsigned i = 0; i != 16; ++i)
|
||||
Reserved.set(ARM::D16 + i);
|
||||
static_assert(ARM::D31 == ARM::D16 + 15, "Register list not consecutive!");
|
||||
Reserved.set(ARM::D16, ARM::D31 + 1);
|
||||
}
|
||||
const TargetRegisterClass *RC = &ARM::GPRPairRegClass;
|
||||
for(TargetRegisterClass::iterator I = RC->begin(), E = RC->end(); I!=E; ++I)
|
||||
|
Loading…
x
Reference in New Issue
Block a user