diff options
author | Alex Bradbury <asb@igalia.com> | 2025-09-23 17:17:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-23 16:17:35 +0000 |
commit | 9d48df7a92e723a0d1a8bd8c664988411ca530a1 (patch) | |
tree | 67b9eae7af313f85c71dee32fbd2cb8cb42436dd /llvm/lib/CodeGen/CodeGenTargetMachineImpl.cpp | |
parent | b7908e3841601b46eaf5b4fcc17aeb020df80672 (diff) | |
download | llvm-9d48df7a92e723a0d1a8bd8c664988411ca530a1.zip llvm-9d48df7a92e723a0d1a8bd8c664988411ca530a1.tar.gz llvm-9d48df7a92e723a0d1a8bd8c664988411ca530a1.tar.bz2 |
[UpdateTestChecks] Don't fail silently when conflicting CHECK lines means no checks are generated for some functions (#159321)
There is a warning that triggers if you (for instance) run
`update_llc_test_checks.py` on an input where _all_ functions have
conflicting check lines and so no checks are generated. However, there
are no warnings emitted at all for the case where some functions have
non-conflicting check lines but others don't. This is a source of
frustration because running update_llc_test_checks can result in all
check lines being removed for certain functions when such a conflict
exists with no warning, meaning we have to be extra vigilant inspecting
the diff. I've also personally wasted time tracking down the source of
the dropped lines assuming that update_test_checks would emit a warning
in such cases.
This change adds logic to emit warnings on a function-by-function basis
for any RUN that has conflicting prefixes meaning no output is
generated. This subsumes the previous warning for when _all_ functions
conflict.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenTargetMachineImpl.cpp')
0 files changed, 0 insertions, 0 deletions