r296498 introduced a DenseSet to store function importing info.
Using this container causes a test failure in
test/Transform/SampleProfile/import.ll when in Reverse Iteration mode.
This patch orders IDs before iterating through this container.
Differential D37246
[PGO] Fixed non-determinism with DenseSet storing function importing info. apazos on Aug 28 2017, 8:25 PM. Authored by
Details r296498 introduced a DenseSet to store function importing info. Using this container causes a test failure in This patch orders IDs before iterating through this container.
Diff Detail Event TimelineComment Actions No, no test needs to change. After r296498 change the compiler was generating: While the test expected: In regular mode, the test passes. But it failed in Reverse Iteration mode. Comment Actions The sorting is not a concern as it's only called once perf function, and the list should not be large. Thanks for fixing the non-determinism in code. |
please remove this line