Skip to content

Commit 17328f3

Browse files
authored
[BOLT][test] Fix NFC mismatches in perf2bolt tests (#146148)
zero-density.s causes spurious NFC mismatches, e.g. https://lab.llvm.org/buildbot/#/builders/92/builds/21380 This is caused by NFC script wrapping llvm-bolt binary only, so that perf2bolt invocations are replaced by `llvm-bolt --agregate-only` to achieve perf2bolt behavior. Add `show-density` to the list of flags wrapping perf2bolt calls to avoid similar issues in the future. Test Plan: ``` $ bolt/utils/nfc-check-setup.py --switch-back $ bin/llvm-lit -a tools/bolt/test/X86/zero-density.s ```
1 parent 23daa31 commit 17328f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/utils/llvm-bolt-wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_cfg(key):
7979

8080

8181
# perf2bolt mode
82-
PERF2BOLT_MODE = ["-aggregate-only", "-ignore-build-id"]
82+
PERF2BOLT_MODE = ["-aggregate-only", "-ignore-build-id", "-show-density"]
8383

8484
# boltdiff mode
8585
BOLTDIFF_MODE = ["-diff-only", "-o", "/dev/null"]

0 commit comments

Comments
 (0)