[PATCH] D112297: [LTO] Fix assertion failed when flushing bitcode incrementally for LTO output.

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 22 07:58:57 PDT 2021


tejohnson added a comment.

In D112297#3080657 <https://reviews.llvm.org/D112297#3080657>, @Enna1 wrote:

> On default, command line option `FlushThreshold` is 512(M) defined in llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
>
>   static cl::opt<uint32_t> FlushThreshold(
>       "bitcode-flush-threshold", cl::Hidden, cl::init(512),
>       cl::desc("The threshold (unit M) for flushing LLVM bitcode."));
>
> and AFAIK, there is no command line option for lld to modify `FlushThreshold` value.

You can set internal an llvm option such as this from lld via -mllvm -bitcode-flush-threshold=0, or from the clang driver via -Wl,-mllvm,-bitcode-flush-threshold=0


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112297/new/

https://reviews.llvm.org/D112297



More information about the llvm-commits mailing list