[LLVMbugs] [Bug 11962] New: massive memory usage at -O2 and -Os
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 9 11:54:21 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11962
Bug #: 11962
Summary: massive memory usage at -O2 and -Os
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nobled at dreamwidth.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
LLVM: r150191
clang: r150194
Compiling the attached file at -O1 maxes out at about 234 MB. With -O2 and -Os,
I saw clang go over 2.3 GB before I had to kill the process:
clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-main-file-name "ARMDisassembler.ii" -pic-level 2 -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -g -coverage-file "ARMDisassembler.cpp.o"
-resource-dir "lib/clang/3.1" -fdeprecated-macro -fdebug-compilation-dir "."
-ferror-limit 19 -fmessage-length 113 -fvisibility-inlines-hidden
-mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o "ARMDisassembler.cpp.o" -x c++-cpp-output
"ARMDisassembler.ii" -Os
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list