By using emplace_back, as well as converting some loops to for-each, we can do more efficient vectorization.
Make copy constructor for TemporaryFile noexcept.
Paths
| Differential D139552
[NFC] Optimize vector usage in lld ClosedPublic Authored by gAlfonso-bit on Dec 7 2022, 9:14 AM.
Details
Summary By using emplace_back, as well as converting some loops to for-each, we can do more efficient vectorization. Make copy constructor for TemporaryFile noexcept.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 7 2022, 9:14 AM int3 added inline comments.
This revision now requires changes to proceed.Jan 24 2023, 5:04 PM gAlfonso-bit marked 3 inline comments as done. Comment Actions Thanks!
This revision is now accepted and ready to land.Jan 25 2023, 5:08 PM gAlfonso-bit marked an inline comment as done. gAlfonso-bit marked an inline comment as done. Comment ActionsDone! Closed by commit rG3df4c5a92f7f: [NFC] Optimize vector usage in lld (authored by int3). · Explain WhyJan 26 2023, 5:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 480947 lld/COFF/Chunks.cpp
lld/COFF/Driver.cpp
lld/COFF/DriverUtils.cpp
lld/COFF/MinGW.cpp
lld/COFF/Writer.cpp
lld/ELF/InputFiles.cpp
lld/ELF/MapFile.cpp
lld/ELF/OutputSections.cpp
lld/MachO/Arch/ARM64.cpp
lld/MachO/SyntheticSections.h
|
maybe add a remark about this noexcept to the commit message