[lld] r284716 - Compact SectionPiece.
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 09:10:18 PDT 2016
On Thu, Oct 20, 2016 at 3:55 AM, Rafael Espindola via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: rafael
> Date: Thu Oct 20 05:55:58 2016
> New Revision: 284716
> URL: http://llvm.org/viewvc/llvm-project?rev=284716&view=rev
> Compact SectionPiece.
> We allocate a lot of these when linking debug info. This speeds up the
> link of debug programs by 1% to 2%.
> + ssize_t OutputOff : 8 * sizeof(ssize_t) - 1;
> uint32_t Live : 1;
> +static_assert(sizeof(SectionPiece) == 2 * sizeof(size_t),
> + "SectionPiece is too big");
I commited r284740 because the assert was failing under MSVC. I
believe my change should be equivalent, but you might want to double
More information about the llvm-commits