diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2023-09-26 15:13:47 +0200 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2023-09-26 15:16:09 +0200 |
| commit | 679c3a1791b51f2ad0771b8ce924130b071a956f (patch) | |
| tree | 6c45927394e39b0710569816fbdafafeb57e92f1 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
| parent | fb8ce45a037f0b2eb6e9c3eaffe139c6b6b5481c (diff) | |
[TargetLowering] use stable_sort to avoid nondeterminism
After 330fa7d2a4e0cfbb4b078 we were seeing nondeterministic failures of
llvm/test/CodeGen/ARM/thumb-big-stack.ll, with different code being
generated in different runs.
Switching sort -> stable_sort fixes this.
It looks like the old algorithm picked the first best option, and using
stable_sort restores that behavior.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions
