Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,22 @@ jobs:
rm -f 1.5.1.tar.gz

make clean
make -j$(nproc) CXXOPTS="-O2 -g3" simplecpp
# TODO: we could also use -O3 but that causes a performance regression with GCC
make -j$(nproc) CXXOPTS="-O2 -g3 -flto" LDOPTS="-flto" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind.log || (cat callgrind.log && false)
cat callgrind.log

# PGO - start
make clean
make -j$(nproc) CXXOPTS="-O2 -g3 -fprofile-generate" LDOPTS="-fprofile-generate" simplecpp
make -j$(nproc) CXXOPTS="-O2 -g3 -flto -fprofile-generate" LDOPTS="-flto -fprofile-generate" simplecpp
SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >/dev/null

if compgen -G "default_*.profraw" > /dev/null; then
llvm-profdata merge -output=default.profdata default_*.profraw
fi

make clean
make -j$(nproc) CXXOPTS="-O2 -g3 -fprofile-use" LDOPTS="-fprofile-use" simplecpp
make -j$(nproc) CXXOPTS="-O2 -g3 -flto -fprofile-use" LDOPTS="-flto -fprofile-use" simplecpp
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind_pgo.log || (cat callgrind_pgo.log && false)
cat callgrind_pgo.log
# PGO - end
Expand Down
Loading