OSDN Git Service

[utils] Stricter checking from update_mca_test_checks.py
authorGreg Bedwell <greg_bedwell@sn.scee.net>
Fri, 28 Sep 2018 15:39:09 +0000 (15:39 +0000)
committerGreg Bedwell <greg_bedwell@sn.scee.net>
Fri, 28 Sep 2018 15:39:09 +0000 (15:39 +0000)
commit340f0f6086c6af7ec6f88961daa8a71203c57d36
tree9b0dc2d9c0abc26a72c1e6fb1ea1188ed5ad54b3
parent29869b91c05b6d9e8863d5628646ae92cb2981e3
[utils] Stricter checking from update_mca_test_checks.py

If any prefixes have been specified on the RUN lines that do not end up
ever actually getting printed, raise an Error. This is either an
indication that the run lines just need cleaning up, or that something
is more fundamentally wrong with the test.

Also raise an Error if there are any blocks which cannot be checked
because they are not uniquely covered by a prefix.

Fixed up a couple of tests where the extra checking flagged up issues.

Differential Revision: https://reviews.llvm.org/D48276

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343332 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-mca/X86/option-all-views-2.s
test/tools/llvm-mca/X86/register-file-statistics.s
utils/update_mca_test_checks.py