<div dir="ltr">Hello,<br>I want to compare a program before and after having run a FunctionPass. The purpose is merely didactic. What I would like to do is, during the runOnFunction() method, "save" somehow the instruction set and cfg of the function, run the optimization. and then compare the two codes, before and after the transformation.<br>
Is there an automatic way tho do that, or a suggested approach?<br>Thanks,<br>GT</div>