Lib/Liveness/CFG.cpp
/**
 * Find the last line num which has the same block as `line_num`.
 */
Find the last line num which has the same block as `line_num`.
Find the last line num which has the same block as ` line_num ` .
int CFG::Blocks::end(InstrId line_num) const {
 int ret = list[line_num];
 for (int j = line_num + 1; j < (int) list.size(); j++) {
   if (list[line_num] == list[j]) {
     ret = j;
   }
 }
 return ret;
}
int CFG :: Blocks :: end ( InstrId line_num ) const { int ret = list [ line_num ] ; for ( int j = line_num + 1 ; j < ( int ) list . size ( ) ; j ++ ) { if ( list [ line_num ] == list [ j ] ) { ret = j ; } } return ret ; }
Find the last line num which has the same block as `line_num`.
Find the last line num which has the same block as ` line_num ` .