With this --shuffle-sections=seed produces the same result in every
host.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/test/ELF/shuffle-sections.s | ||
---|---|---|
9 | Also delete mention of std::shuffle in shuffle-sections-init-fini.s I think keeping ORDERED-SAME and SHUFFLED-NOT in shuffle-sections-init-fini.s as is is fine, though I will not object if you also change them to test a particular order. | |
llvm/include/llvm/ADT/STLExtras.h | ||
1014 | Return if first == last | |
1015 | < -> != | |
1018 | d can be inlined. |
llvm/include/llvm/ADT/STLExtras.h | ||
---|---|---|
1010 | Based on the libc++ implementation. llvm -> LLVM |
Update all tests
Simplify the implementation a bit. This is not exactly what was requested, but IMHO it is simpler.
llvm/include/llvm/ADT/STLExtras.h | ||
---|---|---|
1017 | i can be inlined, too. |
LGTM with minor nits.
llvm/include/llvm/ADT/STLExtras.h | ||
---|---|---|
1013 | This file seems has inconsistent variables naming style, but seems | |
1017 | Also we often trying to avoid auto when the result in not obvious. |
Also delete mention of std::shuffle in shuffle-sections-init-fini.s
I think keeping ORDERED-SAME and SHUFFLED-NOT in shuffle-sections-init-fini.s as is is fine, though I will not object if you also change them to test a particular order.