[PATCH] D139552: [NFC] Optimize vector usage in lld

Alf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 09:14:20 PST 2022


gAlfonso-bit created this revision.
gAlfonso-bit added a reviewer: MaskRay.
gAlfonso-bit added projects: lld, LLVM.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
gAlfonso-bit requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.

By using emplace_back, as well as converting some loops to for-each, we can do more efficient vectorization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139552

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139552.480947.patch
Type: text/x-patch
Size: 7171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221207/7ae5dcb9/attachment.bin>


More information about the llvm-commits mailing list