[Utils] Deal with occasionally deleted functions
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 11 Oct 2019 01:23:17 +0000 (20:23 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 31 Dec 2019 08:35:18 +0000 (02:35 -0600)
commita6c59e0792edc46df937b338fe0e68d00cabf90b
tree0c87c5e09c22317e04c13c776d3c5e1c8fa2170c
parent751336340dabc58f178a24f7b169f33366316f70
[Utils] Deal with occasionally deleted functions

When functions exist for some but not all run lines we need to be
careful when selecting the prefix. So far, a common prefix was
potentially chosen as there was never a "conflict" that would have
caused otherwise. With this patch we avoid common prefixes if they
are used by run lines that do not emit the function.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D68850
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/sometimes_deleted_function.ll [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/sometimes_deleted_function.ll.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/sometimes_deleted_function.test [new file with mode: 0644]
llvm/utils/UpdateTestChecks/common.py