diff options
| author | Olle Fredriksson <fredriksson.olle@gmail.com> | 2022-02-01 11:01:15 -0500 |
|---|---|---|
| committer | Alex Zhikhartsev <alex.zhi@huawei.com> | 2022-02-01 11:02:58 -0500 |
| commit | 9d555b4a83bf72450d417c69aa0be250f0a490e4 (patch) | |
| tree | 68be3014ce6c393f9dcbf0909b6389a70c5c8647 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 22d3bbdf4e3d6e178a3af8a97be57528ad27dbed (diff) | |
[DFAJumpThreading] make update order deterministic
We tracked down some non-determinism in compilation output to the
DFAJumpThreading pass. These changes fixed our issue:
* Make the DefMap type a MapVector to make its iteration order depend on
insertion order.
* Sort the values to be inserted into NewDefs by instruction order to
make the insertion order deterministic. Since these values come from
iterating over a ValueMap, which doesn't have deterministic iteration
order, I couldn't fix this at its source.
Reviewed By: alexey.zhikhar
Differential Revision: https://reviews.llvm.org/D118590
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
