static void removeAllPhis(IR ir){
  for (Instruction s=ir.firstInstructionInCodeOrder(), sentinel=ir.lastInstructionInCodeOrder(), nextInstr=null; s != sentinel; s=nextInstr) {
    nextInstr=s.nextInstructionInCodeOrder();
    if (Phi.conforms(s))     s.remove();
  }
}

static void removeAllPhis ( IR ir ) { for ( Instruction s = ir . firstInstructionInCodeOrder ( ) , sentinel = ir . lastInstructionInCodeOrder ( ) , nextInstr = null ; s != sentinel ; s = nextInstr ) { nextInstr = s . nextInstructionInCodeOrder ( ) ; if ( Phi . conforms ( s ) ) s . remove ( ) ; } }
remove all phi instructions from the ir .
