[all-commits] [llvm/llvm-project] 59f6f3: Reapply "[utils][UpdateLLCTestChecks] Add MIR supp...
Valery Pykhtin via All-commits
all-commits at lists.llvm.org
Thu Nov 6 02:36:08 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 59f6f33bc3d666acdc5e4c822dfaddc92dee1f83
https://github.com/llvm/llvm-project/commit/59f6f33bc3d666acdc5e4c822dfaddc92dee1f83
Author: Valery Pykhtin <valery.pykhtin at amd.com>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm_mir_mixed.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm_mir_mixed.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm_mir_same_prefix.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm_mir_same_prefix.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-asm-mir-mixed.test
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-asm-mir-same-prefix.test
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/UpdateTestChecks/mir.py
M llvm/utils/update_llc_test_checks.py
Log Message:
-----------
Reapply "[utils][UpdateLLCTestChecks] Add MIR support to update_llc_test_checks.py." (#164965) (#166575)
This change enables update_llc_test_checks.py to automatically generate
MIR checks for RUN lines that use `-stop-before` or `-stop-after` flags
allowing tests to verify intermediate compilation stages (e.g., after
instruction selection but before peephole optimizations) alongside the
final assembly output. If `-debug-only` flag is present in the run line it's
considered as the main point of interest for testing and stop flags above
are ignored (that is no MIR checks are generated).
This resulted from the scenario, when I needed to test two instruction
matching patterns where the later pattern in the peepholer reverts the
earlier pattern in the instruction selector and distinguish it from the
case when the earlier pattern didn't worked at all.
Initially created by Claude Sonnet 4.5 it was improved later to handle
conflicts in MIR <-> ASM prefixes and formatting.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list