Add function lastInstruction on FlowNode to calculate the last
intruction that can modify a register.