[PATCH] D102707: Fix non-global-value-max-name-size not considered by LLParser

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 12:41:10 PST 2022


dim added a comment.

For some reason, this commit causes a huge memory usage, and extreme slowdown, when compiling the FreeBSD port `math/openturns` (https://github.com/openturns/openturns) port; see https://bugs.freebsd.org/261341.

With `llvmorg-13-init-11364-g0ce58c52d50` (i.e. just before this commit):

  + /usr/bin/time -l /home/dim/ins/llvmorg-13-init-11364-g0ce58c52d50/bin/clang -O2 -fstack-protector-strong -fno-strict-aliasing -fPIC '-ftemplate-depth=500' -pthread '-fopenmp=libomp' '-std=gnu++14' -c Dlib.ii
         14.16 real        13.96 user         0.19 sys
      363180  maximum resident set size
       61301  average shared memory size
         479  average unshared data size
         617  average unshared stack size
       73221  page reclaims
           1  page faults
           0  swaps
           0  block input operations
           8  block output operations
           0  messages sent
           0  messages received
           0  signals received
           3  voluntary context switches
         156  involuntary context switches

With `llvmorg-13-init-11365-g8d257627206`:

  + /usr/bin/time -l /home/dim/ins/llvmorg-13-init-11365-g8d257627206/bin/clang -O2 -fstack-protector-strong -fno-strict-aliasing -fPIC '-ftemplate-depth=500' -pthread '-fopenmp=libomp' '-std=gnu++14' -c Dlib.ii
  time: command terminated abnormally
        574.34 real       357.02 user       195.51 sys
    50016576  maximum resident set size
       60984  average shared memory size
         477  average unshared data size
         759  average unshared stack size
    31546767  page reclaims
      132341  page faults
           0  swaps
           4  block input operations
           0  block output operations
           0  messages sent
           0  messages received
           1  signals received
      132360  voluntary context switches
        6162  involuntary context switches

I had to terminate the clang process after ~9 minutes, as it was using >115GiB virtual memory, and this was a bit of a risk to crash the (shared) machine I was working on.

Any ideas, before I attempt reducing the ~196,000 line test case? :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102707



More information about the llvm-commits mailing list