<div dir="ltr">I want to run a bunch of optimizations, iteratively, that is keep running until things stop changing (to make sure all optimization opportunities are taken). As far as I know, there is no way to copy a module or compare modules by value, so it occurs to me that a practical solution might be to take the hash code of the module and see if that changes.<br><br>A problem is that hash algorithms are designed to work on streams of bytes, not compound objects.<br><br>First attempt at a solution: iterate through all instructions in all functions and hash the instruction kinds. I can think of some possible changes that would fail to be captured by that.<br><br>Is there any already known solution?<br></div>