llvm-project/llvm/test/tools/UpdateTestChecks/update_llc_test_checks
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
..
Inputs [utils] Fix UpdateTestChecks case where 2 runs differ for last label 2020-12-15 07:16:54 -08:00
aarch64-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
aarch64_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
amdgpu-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
amdgpu_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
arm-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
arm_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
basic.test
common-label-different-bodies.test [utils] Fix UpdateTestChecks case where 2 runs differ for last label 2020-12-15 07:16:54 -08:00
hexagon-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
hexagon_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
lanai-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
lanai_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
lit.local.cfg
mips-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
mips_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
msp430-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
msp430_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
on_the_fly_arg_change.test
ppc-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
ppc_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
prefix-never-matches.test [utils] Fix UpdateTestChecks case where 2 runs differ for last label 2020-12-15 07:16:54 -08:00
riscv-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
sparc-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
sparc_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
systemz-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
systemz_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
wasm-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
wasm_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00
x86-function-name.test [UpdateTestChecks] Allow $ in function names 2020-09-16 14:34:18 -05:00
x86_generated_funcs.test [UpdateCCTestChecks] Include generated functions if asked 2020-09-18 06:34:59 -05:00