Skip to content

File extremely slow to compile #136635

Open
Open
@jcelerier

Description

@jcelerier

The attached file takes a very long time to build at higher optimization levels. clang-19 as provided by archlinux (x86-64).
With optimizations and debug info it's been running for 20 minutes and I haven't seen it end yet so I assume it's stuck.

For reference my machine can do a clean LLVM+clang build in roughly 7 minutes (420 seconds)

Flags Timings
-O0 30s
-O0 -g 40s
-O1 72s
-O1 -g ???
-O2 109s
-O2 -march=native 139s
-O3 126s
-O3 -march=native -g ???

slow.zip

when tracing the performance with one of the stuck processes it seems that it is due to the removeredundantdebugvalues pass:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions