mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Use uint16_t to store register overlaps to reduce static data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -80,7 +80,7 @@ void InterferenceCache::Entry::reset(unsigned physReg,
|
||||
PhysReg = physReg;
|
||||
Blocks.resize(MF->getNumBlockIDs());
|
||||
Aliases.clear();
|
||||
for (const unsigned *AS = TRI->getOverlaps(PhysReg); *AS; ++AS) {
|
||||
for (const uint16_t *AS = TRI->getOverlaps(PhysReg); *AS; ++AS) {
|
||||
LiveIntervalUnion *LIU = LIUArray + *AS;
|
||||
Aliases.push_back(std::make_pair(LIU, LIU->getTag()));
|
||||
}
|
||||
@ -96,7 +96,7 @@ void InterferenceCache::Entry::reset(unsigned physReg,
|
||||
bool InterferenceCache::Entry::valid(LiveIntervalUnion *LIUArray,
|
||||
const TargetRegisterInfo *TRI) {
|
||||
unsigned i = 0, e = Aliases.size();
|
||||
for (const unsigned *AS = TRI->getOverlaps(PhysReg); *AS; ++AS, ++i) {
|
||||
for (const uint16_t *AS = TRI->getOverlaps(PhysReg); *AS; ++AS, ++i) {
|
||||
LiveIntervalUnion *LIU = LIUArray + *AS;
|
||||
if (i == e || Aliases[i].first != LIU)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user