[llvm-dev] Hash of a module
Jonathan Roelofs via llvm-dev
llvm-dev at lists.llvm.org
Tue Dec 22 23:52:08 PST 2015
On 12/22/15 11:45 AM, Philip Reames via llvm-dev wrote:
> On 12/21/2015 09:29 AM, Robinson, Paul via llvm-dev wrote:
>> | (canonicalizeOperands swaps arguments of an and and then
>> ReassociateExpression swaps them back).
>> That feels like its own bug, canonicalize and reassociate having
>> different opinions of canonical order. Just saying.
> It definitely is. However, we seem to have a good number of these types
> of bugs. Nothing in our current test infrastructure reveals them, so
> they seem to be relatively widespread.
> Might be worthing adding an assertion to the pass manager that the hash
> of a changed module differs from the hash of the original?
The opposite seems like it might be useful too: assert that the hash of
an unchanged module remains unchanged.
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the llvm-dev