Move instruction

Hi owen,
Can you please elaborate as to what should I do? Find all the instruction which have r2 in it and replace all of them with r1 and then remove the load instruction?
Thanks
Abhinav

r2->replaceAllUsesWith(r1);
r2->eraseFromParent();

LLVM makes it easy! :wink:

--Owen

oh thanks oven,
that is ultimately cool :slight_smile: