mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-30 18:28:39 +00:00
Revert r135121 which broke a gcc-4.2 builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#define DEBUG_TYPE "regalloc"
|
||||
#include "InterferenceCache.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -41,18 +40,9 @@ InterferenceCache::Entry *InterferenceCache::get(unsigned PhysReg) {
|
||||
E = RoundRobin;
|
||||
if (++RoundRobin == CacheEntries)
|
||||
RoundRobin = 0;
|
||||
for (unsigned i = 0; i != CacheEntries; ++i) {
|
||||
// Skip entries that are in use.
|
||||
if (Entries[E].hasRefs()) {
|
||||
if (++E == CacheEntries)
|
||||
E = 0;
|
||||
continue;
|
||||
}
|
||||
Entries[E].reset(PhysReg, LIUArray, TRI, MF);
|
||||
PhysRegEntries[PhysReg] = E;
|
||||
return &Entries[E];
|
||||
}
|
||||
llvm_unreachable("Ran out of interference cache entries.");
|
||||
Entries[E].reset(PhysReg, LIUArray, TRI, MF);
|
||||
PhysRegEntries[PhysReg] = E;
|
||||
return &Entries[E];
|
||||
}
|
||||
|
||||
/// revalidate - LIU contents have changed, update tags.
|
||||
@@ -69,7 +59,6 @@ void InterferenceCache::Entry::reset(unsigned physReg,
|
||||
LiveIntervalUnion *LIUArray,
|
||||
const TargetRegisterInfo *TRI,
|
||||
const MachineFunction *MF) {
|
||||
assert(!hasRefs() && "Cannot reset cache entry with references");
|
||||
// LIU's changed, invalidate cache.
|
||||
++Tag;
|
||||
PhysReg = physReg;
|
||||
|
Reference in New Issue
Block a user