Issue 87973
Summary Clang 18 is much slower to compile large file in Postgres repo than GCC with -Og
Labels clang
Assignees
Reporter JelteF
    While investigating Postgres compile times I noticed that compile times of specific file were much larger than other files. Especially when compiling with clang and especially when compared to `gcc` with the `-Og` flag. 

To reproduce:
1. git clone https://github.com/postgres/postgres
2. cd postgres
3. Run this script: [compile.sh.txt](https://github.com/llvm/llvm-project/files/14902948/compile.sh.txt)

Results on my machine are as follows:
gcc 11.4.0: 7.276s
clang 18.1.3: 17.216s
gcc 11.4.0 --debug: 7.441s
clang 18.1.3 --debug: 18.164s
gcc 11.4.0 --debug -Og: 2.418s
clang 18.1.3 --debug -Og: 14.864s

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to