llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs
Mircea Trofin e2dc306b1a [utils] Fix UpdateTestChecks case where 2 runs differ for last label
Two RUN lines produce outputs that, each, have some common parts and
some different parts. The common parts are checked under label A. The
differing parts are associated to a function and checked under labels B
and C, respectivelly.
When build_function_body_dictionary is called for the first RUN line, it
will attribute the function body to labels A and C. When the second RUN
is passed to build_function_body_dictionary, it sees that the function
body under A is different from what it has. If in this second RUN line,
A were at the end of the prefixes list, A's body is still kept
associated with the first run's function.

When we output the function body (i.e. add_checks), we stop after
emitting for the first prefix matching that function. So we end up with
the wrong function body (first RUN's A-association).

There is no reason to special-case the last label in the prefixes list,
and the fix is to always clear a label association if we find a RUN line
where the body is different.

Differential Revision: https://reviews.llvm.org/D93078
2020-12-15 07:16:54 -08:00
..
argument_name_reuse.ll
argument_name_reuse.ll.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
argument_name_reuse.ll.plain.expected
basic.ll
basic.ll.expected
basic.ll.funcsig.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
check_attrs.ll [Utils] Check function attributes in update_test_checks 2020-07-19 20:07:24 +02:00
check_attrs.ll.funcattrs.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
check_attrs.ll.plain.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
function_name.ll [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
function_name.ll.expected [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
generated_funcs.ll Revert "[PM/CC1] Add -f[no-]split-cold-code CC1 option to toggle splitting" 2020-10-19 12:31:14 +02:00
generated_funcs.ll.generated.expected Revert "[PM/CC1] Add -f[no-]split-cold-code CC1 option to toggle splitting" 2020-10-19 12:31:14 +02:00
generated_funcs.ll.nogenerated.expected Revert "[PM/CC1] Add -f[no-]split-cold-code CC1 option to toggle splitting" 2020-10-19 12:31:14 +02:00
on_the_fly_arg_change.ll
on_the_fly_arg_change.ll.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
on_the_fly_arg_change.ll.initially_disabled.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00
prefix-never-matches.ll [utils] Fix UpdateTestChecks case where 2 runs differ for last label 2020-12-15 07:16:54 -08:00
scrub_attrs.ll
scrub_attrs.ll.plain.expected [UpdateTestChecks] Match unnamed values like "@[0-9]+" and "![0-9]+" 2020-08-12 01:04:16 -05:00
scrub_attrs.ll.scrub.expected
sometimes_deleted_function.ll
sometimes_deleted_function.ll.expected
various_ir_values.ll [UpdateTestChecks] Match unnamed values like "@[0-9]+" and "![0-9]+" 2020-08-12 01:04:16 -05:00
various_ir_values.ll.expected [UpdateTestChecks] Match unnamed values like "@[0-9]+" and "![0-9]+" 2020-08-12 01:04:16 -05:00
various_ir_values.ll.funcsig.expected [UpdateTestChecks] include { in function signature check line 2020-08-28 23:44:03 +02:00