Commit 3a4f47b
committed
[AIEX] update_ore_test_checks: don't chain asm update for remark-only tests
With --update-llc-checks, update_ore_test_checks.py stripped the remark RUN
lines and always invoked update_llc_test_checks.py. For a test whose only RUN
lines are remark runs, that handed the sibling script a file with no RUN lines,
which crashed in update_llc_test_checks.py main() with an UnboundLocalError
(output_type is only bound inside the per-RUN-line loop).
Fix it structurally at the orchestration layer: only delegate to the asm/MIR
update script when the test actually has a non-remark RUN line to regenerate
(has_asm_run_lines). A remark-only test now skips the asm step and just
regenerates its remark CHECK lines.
Add a regression test (x86-ore-chain-update-no-asm) covering a remark-only
test updated with --update-llc-checks, including UTC_ARGS idempotency.1 parent 02d28a4 commit 3a4f47b
4 files changed
Lines changed: 90 additions & 4 deletions
File tree
- llvm
- test/tools/UpdateTestChecks/update_ore_test_checks
- Inputs
- utils
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
522 | 530 | | |
523 | 531 | | |
524 | 532 | | |
525 | | - | |
526 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
527 | 539 | | |
528 | 540 | | |
529 | | - | |
| 541 | + | |
530 | 542 | | |
531 | 543 | | |
| 544 | + | |
532 | 545 | | |
533 | | - | |
534 | 546 | | |
535 | 547 | | |
536 | 548 | | |
| |||
0 commit comments