diff options
author | Ramkumar Ramachandra <ramkumar.ramachandra@codasip.com> | 2025-05-21 12:01:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 12:01:49 +0100 |
commit | bb2791609db5da24e51d0bc50fedff654da9a1a8 (patch) | |
tree | 2d5f75ccbedef82234c12ccd12acb9b026c13288 /llvm/utils/UpdateTestChecks/common.py | |
parent | bdc1296de4cdccfba001416f96ce42b63082220a (diff) | |
download | llvm-bb2791609db5da24e51d0bc50fedff654da9a1a8.zip llvm-bb2791609db5da24e51d0bc50fedff654da9a1a8.tar.gz llvm-bb2791609db5da24e51d0bc50fedff654da9a1a8.tar.bz2 |
[LAA] Tweak debug output for UTC stability (#140764)
UpdateTestChecks has a make_analyzer_generalizer to replace pointer
addressess from the debug output of LAA with a pattern, which is an
acceptable solution when there is one RUN line. However, when there are
multiple RUN lines with a common pattern, UTC fails to recognize common
output due to mismatched pointer addresses. Instead of hacking UTC scrub
the output before comparing the outputs from the different RUN lines,
fix the issue once and for all by making LAA not output unstable pointer
addresses in the first place.
The removal of the now-dead make_analyzer_generalizer is left as a
non-trivial exercise for a follow-up.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index d150612..0074858 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -1307,6 +1307,7 @@ def make_asm_generalizer(version): return GeneralizerInfo(version, GeneralizerInfo.MODE_ASM, values, prefix, suffix) +# TODO: This is no longer required. Generalize UTC over an empty GeneralizerInfo. def make_analyze_generalizer(version): values = [ NamelessValue( |