runtime/vm/compiler/backend/loops.cc
// Helper method that finds phi-index of the initial value
// that comes from a block outside the loop. Note that the
// algorithm still works if there are several of these.
Helper method that finds phi-index of the initial value
that comes from a block outside the loop. Note that the
algorithm still works if there are several of these.
Helper method that finds phi - index of the initial value that comes from a block outside the loop . Note that the algorithm still works if there are several of these .
static intptr_t InitIndex(LoopInfo* loop) {
  BlockEntryInstr* header = loop->header();
  for (intptr_t i = 0; i < header->PredecessorCount(); ++i) {
    if (!loop->Contains(header->PredecessorAt(i))) {  
      return i;
    }
  }
  UNREACHABLE();
  return -1;
}
static intptr_t InitIndex ( LoopInfo * loop ) { BlockEntryInstr * header = loop -> header ( ) ; for ( intptr_t i = 0 ; i < header -> PredecessorCount ( ) ; ++ i ) { if ( ! loop -> Contains ( header -> PredecessorAt ( i ) ) ) { return i ; } } UNREACHABLE ( ) ; return -1 ; }
Helper method that finds phi-index of the initial value
that comes from a block outside the loop.
Helper method that finds phi - index of the initial value that comes from a block outside the loop .
// pick first