[test, LoopVectorize] 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:32:30 +0000 (15:32 +0100)
commit8b5b03c279be111bfcac79200d8cba5007d59c58
tree8e512aa462abd98449e18bbbae975cc9e3f30fdd
parentf58463345415508b1fb5e3d35330ed288f1a0357
[test, LoopVectorize] Fix use of var defined in CHECK-NOT

LLVM test Transforms/LoopVectorize/X86/x86-pr39099.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 a widened load which rules
out the presence of the whole sequence and does not involve an undefined
variable.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D99583
llvm/test/Transforms/LoopVectorize/X86/x86-pr39099.ll