diff options
| author | weiwei chen <weiwei.chen@modular.com> | 2025-10-08 13:05:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-08 13:05:08 -0400 |
| commit | 497d648fcc096eff968cbfc32c37c96661d14158 (patch) | |
| tree | f93f244796e991e4390e8da081372038d2cd322f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 6308cd871c955490575134e66da8a8d575674724 (diff) | |
| download | llvm-497d648fcc096eff968cbfc32c37c96661d14158.zip llvm-497d648fcc096eff968cbfc32c37c96661d14158.tar.gz llvm-497d648fcc096eff968cbfc32c37c96661d14158.tar.bz2 | |
[AMDGPU] Make sort ordering in `AMDGPURewriteAGPRCopyMFMAImpl::eliminateSpillsOfReassignedVGPRs()` strict weak. (#162493)
- [x] `sort` needs the comparator with strictly weak ordering, however
current logic doesn't meet the
[**Antisymmetry**](https://tanjim131.github.io/2020-05-22-strict-weak-ordering/#:~:text=Almost%20all%20C++%20STL%20containers,the%20person%20with%20greater%20height.)
requirement with
```
sort 0x561ecd3d3db0,0x561eaba91d10 25
weight 0.000000e+00,0.000000e+00
size 650370,662754
slot 732,733
```
Make the comparator logic strict weak order.
Fixes #162490
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
