[PATCH] D61698: [COFF] Store alignment in log2 form, NFC

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 13:55:46 PDT 2019


rnk created this revision.
rnk added reviewers: ruiu, aganea.
Herald added a project: LLVM.

Valid section or chunk alignments are powers of 2 in the range [1,
8192]. These can be stored more canonically in log2 form to free up some
bits in Chunk. Combined with D61696 <https://reviews.llvm.org/D61696>, SectionChunk gets 8 bytes smaller.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D61698

Files:
  lld/COFF/Chunks.cpp
  lld/COFF/Chunks.h
  lld/COFF/Config.h
  lld/COFF/DLL.cpp
  lld/COFF/Driver.cpp
  lld/COFF/DriverUtils.cpp
  lld/COFF/ICF.cpp
  lld/COFF/MapFile.cpp
  lld/COFF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61698.198721.patch
Type: text/x-patch
Size: 11672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/8e6f4589/attachment.bin>


More information about the llvm-commits mailing list