Currently the update test script will only output warning if all functions have conflict under different run lines with same prefix, and be silent if part of them conflict. This looks counterintuitive and leads to confusion sometimes.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lgtm code-wise. Added folks who were also interested in this, from a user perspective (I'm not a user of the tool, can't comment on that aspect.)
llvm/utils/UpdateTestChecks/common.py | ||
---|---|---|
339 | Nit: may be worth renaming this function to more accurately reflect its new behavior. For example: _get_prefixes_failing_functions (or better name). |
llvm/utils/UpdateTestChecks/common.py | ||
---|---|---|
275 | I think the warn only conflicting for all functions is used for the multi prefixes case, e.g. --check-prefixes=A,B;--check-prefixes=A,C when we hope the conflicted functions use B and C respectively. Under which case, warn A conflicted is annoying. |
This patch looks worthy pursuing. We have some tests under test/CodeGen/PowerPC uses -check-prefixes=A,B,C and got conflicts when updating them without any warning and some parts of checks disappear.
llvm/utils/UpdateTestChecks/common.py | ||
---|---|---|
275 | Agree. |
llvm/test/tools/UpdateTestChecks/update_test_checks/prefix_conflicts.test | ||
---|---|---|
1 | Add a period. | |
2 | no need for -f. cp is sufficient. | |
llvm/utils/UpdateTestChecks/common.py | ||
276 | https://llvm.org/docs/CodingStandards.html#error-and-warning-messages It is more common not to capitalize the message. | |
348 | 2 column indentation. |
Looks reasonable but the test needs update. Request changes to remove this from folks' review queues
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/conflict.ll | ||
---|---|---|
8 | better to add another function |
This should only warn if said occurrence would lead to the loss of the checks for the function.
I.e. it should not warn on prefix ALL given
; RUN: opt < %s -instcombine -S | FileCheck --check-prefixes=ALL,IC %s ; RUN: opt < %s -vectorize-slp -S | FileCheck --check-prefixes=ALL,SLP %s
better to add another function