[all-commits] [llvm/llvm-project] 82cf54: [UTC] CHECK-EMPTY instead of skipping blank lines ...

Kunqiu Chen via All-commits all-commits at lists.llvm.org
Sat Nov 1 02:01:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82cf54fbf6a7cd185cfe2279ca9d0cf4c4ea16e0
      https://github.com/llvm/llvm-project/commit/82cf54fbf6a7cd185cfe2279ca9d0cf4c4ea16e0
  Author: Kunqiu Chen <camsyn at foxmail.com>
  Date:   2025-11-01 (Sat, 01 Nov 2025)

  Changed paths:
    A llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_empty.ll
    A llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_empty.ll.expected
    M llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/switch_case.ll.expected
    A llvm/test/tools/UpdateTestChecks/update_test_checks/check_empty.test
    M llvm/utils/UpdateTestChecks/common.py

  Log Message:
  -----------
  [UTC] CHECK-EMPTY instead of skipping blank lines (#165718)

Previously, any blank lines in IR were ignored by UTC, leading to more
fragile `CHECK`s being generated.

This change lets UTC, 1) emit `CHECK-EMPTY` to check blank lines, and 2)
generate more `CHECK-NEXT`s, landing the discussion
https://github.com/llvm/llvm-project/pull/165419#issuecomment-3457572422.

Moreover, this change also aligns the behavior of IR check-gen to ASM
check-gen, which has been emitting `CHECK-EMPTY` since
https://github.com/llvm/llvm-project/commit/a8a89c77ea3c16b45763fca6940bbfd3bef7884f.



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