[llvm] [BOLT] Support --lite selection with basic sample profiles (PR #210226)

Daniel Hill via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 07:46:48 PDT 2026


================
@@ -12,6 +12,8 @@
 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --dyno-stats -ba \
 # RUN:    --print-only=_start 2>&1 | FileCheck %s --check-prefix=CHECK-BOLT
+# RUN: llvm-bolt %t.exe -o %t.lite.out --data %t.fdata --lite \
+# RUN:    --lite-threshold-count=1 -v=1 2>&1 | FileCheck %s --check-prefix=CHECK-LITE
----------------
hilldani wrote:

I think the part this regression needs is a nonzero threshold: the existing run uses the default of zero, so it doesn’t exercise the count-based filtering. The skip message also needs -v=1.

Should I add `--lite-threshold-count=1 -v=1` to the existing run and fold the check into CHECK-BOLT, rather than keeping a separate run?

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


More information about the llvm-commits mailing list