[all-commits] [llvm/llvm-project] d53de9: update_mir_test_checks: Better handling of common ...

Nicolai Hähnle via All-commits all-commits at lists.llvm.org
Wed Jun 1 13:53:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d53de9b7ac394963730ef34616d4104746eea0f0
      https://github.com/llvm/llvm-project/commit/d53de9b7ac394963730ef34616d4104746eea0f0
  Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    A llvm/test/tools/UpdateTestChecks/update_mir_test_checks/Inputs/x86-multiple-prefixes.ll
    A llvm/test/tools/UpdateTestChecks/update_mir_test_checks/Inputs/x86-multiple-prefixes.ll.expected
    A llvm/test/tools/UpdateTestChecks/update_mir_test_checks/x86-multiple-prefixes.test
    M llvm/utils/update_mir_test_checks.py

  Log Message:
  -----------
  update_mir_test_checks: Better handling of common prefixes

Support the pattern where a test file uses multiple prefixes per run line:
one prefix that is unique to the run line, and additional prefixes that are
common with other run lines.

Decide on a per-function basis which prefix(es) to emit, based on which run
lines have the same output.

Move the renaming of vregs earlier, so that we can compare the output as it
would actually be printed in check lines.

Differential Revision: https://reviews.llvm.org/D126411




More information about the All-commits mailing list