[test, HardwareLoops] Fix use of var defined in CHECK-NOT
authorThomas Preud'homme <thomasp@graphcore.ai>
Sun, 28 Mar 2021 00:03:37 +0000 (00:03 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Tue, 30 Mar 2021 14:06:32 +0000 (15:06 +0100)
commit80fb7434e9e7bea65a49d2234092b48419e5dc52
tree1a9b628a5f88d98e09d01cb9b5b6b293259362b8
parentce03a862372a6f36d2fcf80dc80052aa155fcae8
[test, HardwareLoops] Fix use of var defined in CHECK-NOT

LLVM test Transforms/HardwareLoops/ARM/structure.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 only checks for the absence of llvm.loop.decrement.i32 which
rules out the presence of the whole sequence and does not involve an
undefined variable.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D99591
llvm/test/Transforms/HardwareLoops/ARM/structure.ll