question: 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 ) ) ; }
target:  Replace a Load instruction s with a load from a scalar register r <p> TODO: factor this functionality out elsewhere