[all-commits] [llvm/llvm-project] 2323ab: [UTC] Strip only standalone positional %s in updat...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Sep 15 10:54:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2323ab283b13decfdb9edb24745edcf8951913fb
      https://github.com/llvm/llvm-project/commit/2323ab283b13decfdb9edb24745edcf8951913fb
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/utils/update_test_checks.py

  Log Message:
  -----------
  [UTC] Strip only standalone positional %s in update_test_checks.py (#221153)

Previously, update_test_checks.py used tool_cmd_args.replace("%s", "")
to strip the input file when passing the IR via stdin. However, this
blindly removed "%s" from any option argument, leaving an empty value
(e.g., -lowertypetests-read-summary=).

Update the argument stripping to only remove standalone positional
"< %s" or "%s", preserving option arguments with "%s" values so they can
be expanded via common substitutions.

This enables update_test_checks.py to work for tests such as
llvm/test/Transforms/LowerTypeTests/cfi-jumptable-hotness-summary.ll,
which passes -lowertypetests-read-summary=%s on the RUN line.

Assisted-by: Gemini



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