<div dir="ltr"><div>I have a CopyToReg that is copying from different size types, what's the best way to change that to a zext or sext node based on signed or unsigned? </div><div><br></div><div>I'm fairly unfamiliar with SelectionDAG process (outside of the docs on llvm website).</div><div><br></div><div>It seems like I should be able to insert a custom hook using the register class to identify the type, potentially in ISelDAGToDag.cpp or is there a better place for this to be done?</div><div><br></div><div>Thanks.</div></div>