[Polly][Test] Fix race condition while printing dot files.
authorMichael Kruse <llvm-project@meinersbur.de>
Thu, 26 May 2022 20:38:04 +0000 (15:38 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Thu, 26 May 2022 20:58:53 +0000 (15:58 -0500)
commitcc871cf6b50f6a76f2083d192e2254a16832224b
tree9ee0bf5612f488e1d0254f510f270f4d484561b0
parent5bf44aa434ffe4d2e49806be20683e32135f4e16
[Polly][Test] Fix race condition while printing dot files.

The tests dot-scops.ll and dot-scops-npm.ll both wrote to the same file
scops.func.dot. If they are executed in parallel they will race for
the file. Fix by renaming func to func_npm in dot-scops-npm.ll so this
test writes dot scops.func_npm.dot.

Long-term, we will probably pass a file name (prefix) to the
printer pass such that we can use the guaranteed-unique LIT %t
placeholder in tests.
polly/test/ScopDetect/dot-scops-npm.ll
polly/test/ScopDetect/dot-scops.ll