[flang-commits] [flang] [flang][Lower] Explicitly instantiate all templates from Utils.h (PR #125216)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Fri Jan 31 10:10:41 PST 2025


tblah wrote:

> This looks harder to maintain going forward than the current code, just to work around your C++ compiler (which is it?) in a small memory environment.

I see exceptionally high memory usage compiling flang (compared to other parts of LLVM) across clang, gcc, and msvc. Sure the problem is more extreme on some compilers than others, but even when building with clang I have to limit the threads on my machine or use a memory-optimized instance because flang (and only flang) cannot be built with normal ratios of cores to memory.

I do agree that maintenance is important. This may or may not be the solution but I think there is a real issue here.

https://github.com/llvm/llvm-project/pull/125216


More information about the flang-commits mailing list