diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-13 22:20:09 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-13 22:20:09 +0000 |
commit | 54c74e906a622c1a2d95d2fc11a7dae88a61963e (patch) | |
tree | e5cb2e002c860448bc8b4a995051872f62f0ab21 /lib/CodeGen/InterferenceCache.h | |
parent | d986bc66bc56251c2b7d5b9a89df14c4760568fc (diff) | |
download | external_llvm-54c74e906a622c1a2d95d2fc11a7dae88a61963e.zip external_llvm-54c74e906a622c1a2d95d2fc11a7dae88a61963e.tar.gz external_llvm-54c74e906a622c1a2d95d2fc11a7dae88a61963e.tar.bz2 |
Revert r135074 and r135080. They broke clamscan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InterferenceCache.h')
-rw-r--r-- | lib/CodeGen/InterferenceCache.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/CodeGen/InterferenceCache.h b/lib/CodeGen/InterferenceCache.h index 6434b3a..6c36fa4 100644 --- a/lib/CodeGen/InterferenceCache.h +++ b/lib/CodeGen/InterferenceCache.h @@ -127,14 +127,10 @@ public: Entry *CacheEntry; BlockInterference *Current; public: - /// Cursor - Create a dangling cursor. - Cursor() : CacheEntry(0), Current(0) {} - - /// setPhysReg - Point this cursor to PhysReg's interference. - void setPhysReg(InterferenceCache &Cache, unsigned PhysReg) { - CacheEntry = Cache.get(PhysReg); - Current = 0; - } + /// Cursor - Create a cursor for the interference allocated to PhysReg and + /// all its aliases. + Cursor(InterferenceCache &Cache, unsigned PhysReg) + : CacheEntry(Cache.get(PhysReg)), Current(0) {} /// moveTo - Move cursor to basic block MBBNum. void moveToBlock(unsigned MBBNum) { |