[llvm] r211705 - Random Number Generator (llvm)

JF Bastien jfb at google.com
Mon Jun 30 13:00:08 PDT 2014


>> The current design requires the exact same source version of LLVM,
>> with the same target and pass ordering, for the produced binary to be
>> bit-for-bit the same. Even slight changes in these could add one RNG
>> query which means that all subsequent decisions will potentially be
>> different.
>
>
> That seems like a reasonable restriction.  I wouldn't expect differing
> source revs of LLVM to produce the same results.

One thing that I should have mention, in light of
uniform_int_distribution, is that we expect same-source versions of
LLVM but with different C and C++ standard libraries to perform the
same randomizations. This isn't the case right now and should be
fixed.

The same applies for host OS and for source install path, which is why
only the base filename from the Module's ID is used (path and encoding
would be different otherwise).



More information about the llvm-commits mailing list