update_analyze_test_checks.py: fix --filter handling
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 7 Mar 2022 12:37:06 +0000 (15:37 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 7 Mar 2022 12:41:13 +0000 (15:41 +0300)
commitdf6c26fd3499d0770eff3922b90f576d7bde3880
tree6018b19af500765f21a63f047b3a0cf685150f04
parent08ba81f5200e044a9ccf4fd00f89a2565d2e8149
update_analyze_test_checks.py: fix --filter handling

In particular, after filtering the check lines can't necessarily
use `-NEXT`, they may not be one directly after another.
llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-filter.ll [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-filter.ll.filter.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/filter.test [new file with mode: 0644]
llvm/utils/UpdateTestChecks/common.py
llvm/utils/update_analyze_test_checks.py