[all-commits] [llvm/llvm-project] 3ba246: [test, AArch64] Fix use of var defined in CHECK-NOT

RoboTux via All-commits all-commits at lists.llvm.org
Tue Apr 6 13:15:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ba246719b7cde7cb5f4603dd25c0c46df22ea36
      https://github.com/llvm/llvm-project/commit/3ba246719b7cde7cb5f4603dd25c0c46df22ea36
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2021-04-06 (Tue, 06 Apr 2021)

  Changed paths:
    M llvm/test/CodeGen/AArch64/speculation-hardening.ll

  Log Message:
  -----------
  [test, AArch64] Fix use of var defined in CHECK-NOT

LLVM test CodeGen/AArch64/speculation-hardening.ll tries to check for
the absence of a sequence of instructions with several CHECK-NOT with
one of those directives using a variable defined in another. However
CHECK-NOT are checked independently so that is using a variable defined
in a pattern that should not occur in the input.

This commit removes the dependency between those CHECK-NOT by replacing
single occurence of the undefined variable by a regex match, and
multiple occurences by a definition followed by a use.

Reviewed By: aemerson

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




More information about the All-commits mailing list