[BOLT][Wrapper] Don't compare output upon error exit code
authorAmir Ayupov <aaupov@fb.com>
Thu, 9 Feb 2023 18:54:53 +0000 (10:54 -0800)
committerAmir Ayupov <aaupov@fb.com>
Thu, 9 Feb 2023 18:55:12 +0000 (10:55 -0800)
commit701109b9b626f380546e479b61bd3be672faed5e
tree603a0ced23f526960f23ccfb3e0dafee2aff8ae8
parentce87b031437071f011026bb850a2fb2e5f9a72b4
[BOLT][Wrapper] Don't compare output upon error exit code

Fix llvm-bolt-wrapper to skip output file checks if llvm-bolt exits with error
code.

Test Plan:
- checkout to revision with invalid NFC mismatch in `is-strip.s` test
  (e.g. 056af487831fb573e6895901d1e48f93922f9635~)
- run `nfc-check-setup.py`
- run `bin/llvm-lit -a tools/bolt/test/X86/is-strip.s`

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D143614
bolt/utils/llvm-bolt-wrapper.py