[llvm-bugs] [Bug 36123] New: memory usage almost doubled while O3+LTOing clang?
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 28 02:06:56 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36123
Bug ID: 36123
Summary: memory usage almost doubled while O3+LTOing clang?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: matthias.krueger at famsik.de
CC: llvm-bugs at lists.llvm.org
While doing my multistage clang selfhost, it seems peak memory usage while
linking the clang binary went from 3-5 gigs compared to a week ago to at least
7 which causes OOM crash in my machine in most cases, if there is a another
linking job happening at the same time. I don't remember this ever being an
issue before at this stage.
cmake config of this stage (stage nr 2):
cmake ../llvm -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCMAKE_C_FLAGS="-march=native -O3 -g0 -DNDEBUG" \
-DCMAKE_CXX_FLAGS="-march=native -O3 -g0 -DNDEBUG" \
-DLLVM_PARALLEL_LINK_JOBS=2 \
-DLLVM_OPTIMIZED_TABLEGEN=1 \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_ENABLE_LTO="Full" \
-DCMAKE_AR="${rootDir}/stage_1/build/bin/llvm-ar" \
-DCMAKE_RANLIB="${rootDir}/stage_1/build/bin/llvm-ranlib" \
-DLLVM_USE_LINKER="${rootDir}/stage_1/build/bin/ld.lld" \
-DCMAKE_INSTALL_PREFIX="${stageBase}/build/" \
-DLLVM_LIBDIR_SUFFIX=64 \
full build script can be found here:
https://github.com/matthiaskrgr/llvm_bootstrap/blob/master/build_git.sh
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180128/30b80303/attachment.html>
More information about the llvm-bugs
mailing list