Skip to content
  • Jakob Stoklund Olesen's avatar
    Count references to interference cache entries. · c270cb6e
    Jakob Stoklund Olesen authored
    Each InterferenceCache::Cursor instance references a cache entry. A
    non-zero reference count guarantees that the entry won't be reused for a
    new register.
    
    This makes it possible to have multiple live cursors examining
    interference for different physregs.
    
    The total number of live cursors into a cache must be kept below
    InterferenceCache::getMaxCursors().
    
    Code generation should be unaffected by this change, and it doesn't seem
    to affect the cache replacement strategy either.
    
    llvm-svn: 135121
    c270cb6e
Loading