static void replaceLoadWithMove(Register r,Instruction load){
  RegisterOperand dest=ResultCarrier.getResult(load);
  RegisterOperand rop=new RegisterOperand(r,dest.getType());
  load.replace(Move.create(IRTools.getMoveOp(dest.getType()),dest,rop));
}

static void replaceLoadWithMove ( Register r , Instruction load ) { RegisterOperand dest = ResultCarrier . getResult ( load ) ; RegisterOperand rop = new RegisterOperand ( r , dest . getType ( ) ) ; load . replace ( Move . create ( IRTools . getMoveOp ( dest . getType ( ) ) , dest , rop ) ) ; }
replace a load instruction s with a load from a scalar register r < p > todo : factor this functionality out elsewhere
