[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)
commitbecbbe038320037b8b34ba77415d4167e1d38afd
treed5f9ecdfbaf345068986f47acbd93576dbdf244b
parent2f528f8c1e8d8b7808f6e1421efa0a7c44754b3b
[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

llvm-svn: 343332
llvm/test/tools/llvm-mca/X86/option-all-views-2.s
llvm/test/tools/llvm-mca/X86/register-file-statistics.s
llvm/utils/update_mca_test_checks.py