Skip to content
  • Jeffrey Yasskin's avatar
    LiveVariables::VarInfo contains an AliveBlocks BitVector, which has as many · 7d287cb7
    Jeffrey Yasskin authored
    entries as there are basic blocks in the function.  LiveVariables::getVarInfo
    creates a VarInfo struct for every register in the function, leading to
    quadratic space use.  This patch changes the BitVector to a SparseBitVector,
    which doesn't help the worst-case memory use but does reduce the actual use in
    very long functions with short-lived variables.
    
    llvm-svn: 72426
    7d287cb7
Loading