Lib/Liveness/Liveness.cpp
/**
 * Compute live sets for each instruction
 *
 * Compute the live-out variables of an instruction, given the live-in
 * variables of all instructions and the CFG.
 */
Compute live sets for each instruction
Compute the live-out variables of an instruction, given the live-in
variables of all instructions and the CFG.
Compute live sets for each instruction Compute the live - out variables of an instruction given the live - in variables of all instructions and the CFG .
void Liveness::computeLiveOut(InstrId i, RegIdSet &liveOut) {
  liveOut.clear();
  for (auto const &val : m_cfg[i]) {
    liveOut.add(get(val));
  }
}
void Liveness :: computeLiveOut ( InstrId i , RegIdSet & liveOut ) { liveOut . clear ( ) ; for ( auto const & val : m_cfg [ i ] ) { liveOut . add ( get ( val ) ) ; } }
Compute live sets for each instruction
 Compute the live-out variables of an instruction, given the live-in
 variables of all instructions and the CFG.
Compute live sets for each instruction Compute the live - out variables of an instruction given the live - in variables of all instructions and the CFG .