[PATCH] D86905: Flush bitcode incrementally for LTO output
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 19:06:36 PDT 2020
tejohnson added inline comments.
================
Comment at: llvm/include/llvm/Bitstream/BitstreamWriter.h:96
+ void FlushToFile() {
+ constexpr uint64_t FlushThreshold = 1UL << 29; // 512M
+ if (!FS) {
----------------
Would it be valuable to make this configurable? How sensitive is performance to the value chosen here?
================
Comment at: llvm/include/llvm/Bitstream/BitstreamWriter.h:153
+
+#ifdef NDEBUG
+ if (StartBit)
----------------
Why is this guarded by NDEBUG? I'm not convinced there is much value in doing this code even when StartBit is 0 in the debug case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86905/new/
https://reviews.llvm.org/D86905
More information about the llvm-commits
mailing list