update_mir_test_checks: Be careful about replacing entire vregs
authorJustin Bogner <mail@justinbogner.com>
Mon, 6 Nov 2017 21:06:09 +0000 (21:06 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 6 Nov 2017 21:06:09 +0000 (21:06 +0000)
commitf7b1007345831e20e6b89bbc1dfcac6dbcaf9a99
tree628c7092a74b98fdb6320e8eec0147cc0f9d3237
parent52a52a6cab40b35ed65e641a198cda93cbcb88c8
update_mir_test_checks: Be careful about replacing entire vregs

Previously, this could end up replacing a vreg like %14 with
[[VREG1]]4, where VREG1 was the match for %1. That's obviously not
correct, though it hasn't actually come up in any tests I've converted
so far.

llvm-svn: 317509
llvm/utils/update_mir_test_checks.py