Displaying 3 results from an estimated 3 matches for "functiondata".
2017 Jun 30
2
llvm-profdata determinism
I haven't tested it, but it looks to me like llvm-profdata merge (well,
InstrProfWriter specifically) would not have deterministic output.
Certainly the textual output iterates over FunctionData which is a
StringMap of SmallDenseMaps, neither of which has deterministic iteration.
The binary writing looks like it'd have similar issues - looping through
these unordered maps & writing output (eg:
InstrProfRecordWriterTrait::EmitData loops through the data in the same
SmallDenseMap an...
2017 Jun 30
2
llvm-profdata determinism
...29, 2017 at 6:27 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> I haven't tested it, but it looks to me like llvm-profdata merge (well,
>> InstrProfWriter specifically) would not have deterministic output.
>>
>> Certainly the textual output iterates over FunctionData which is a
>> StringMap of SmallDenseMaps, neither of which has deterministic iteration
>>
>
> Does the iteration order of these maps depend on the order of hashes (of
> strings for StringMap)?
>
Right - that's my understanding.
(Some folks have started adding interest...
2017 Jun 30
0
llvm-profdata determinism
...laikie <dblaikie at gmail.com>
>> wrote:
>>
>>> I haven't tested it, but it looks to me like llvm-profdata merge (well,
>>> InstrProfWriter specifically) would not have deterministic output.
>>>
>>> Certainly the textual output iterates over FunctionData which is a
>>> StringMap of SmallDenseMaps, neither of which has deterministic iteration
>>>
>>
>> Does the iteration order of these maps depend on the order of hashes (of
>> strings for StringMap)?
>>
>
> Right - that's my understanding.
>
>...