]> granicus.if.org Git - llvm/commit
update_mir_test_checks: Do a better job of disambiguating names
authorJustin Bogner <mail@justinbogner.com>
Wed, 18 Oct 2017 15:37:09 +0000 (15:37 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 18 Oct 2017 15:37:09 +0000 (15:37 +0000)
commit2457f4568638366cc6a19bd55097e78a3360d0cc
tree98db59bc5a561c1d6053f48907b70eb5ce2b0ab9
parent9e42e5485c028f1ebfc4c22cbbd4e73340ab9213
update_mir_test_checks: Do a better job of disambiguating names

Matching prefixes isn't good enough, because it leads to things like
calling the first constant C3 just because there were two copies
before it. Tighten up the check to match more precisely, but also be
careful about ambiguity when dealing with target opcodes that end in a
number.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316088 91177308-0d34-0410-b5e6-96231b3b80d8
utils/update_mir_test_checks.py