[test] Fix mix of variable use/def and regex match
authorThomas Preud'homme <thomasp@graphcore.ai>
Thu, 18 Mar 2021 10:57:30 +0000 (10:57 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Wed, 24 Mar 2021 17:58:16 +0000 (17:58 +0000)
commitc5d53efeff5ca3943af6684e999c8802d9f48702
treeca8fda44f20e2dc27fba602491eb86a29b2df2bd
parent4f283031335329a08e57eb121fbaf79592c2c286
[test] Fix mix of variable use/def and regex match

LLVM test Transforms/GlobalSplit/basic.ll mixes variable definition and
variable use with regex matching of end of line. Mixing end of line
matching with variable definition will work but not record the end of
line in the string variable. Mixing end of line with variable use will
ignore end of line and cause an error once D98691 is landed.

This commit moves the end of line matching out of the string subtitution
blocks.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D98854
llvm/test/Transforms/GlobalSplit/basic.ll