Fix print-dot-ddg.ll so it doesn't try to write to the source tree (& uses the test...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 8 Jan 2021 03:57:14 +0000 (19:57 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 8 Jan 2021 03:57:14 +0000 (19:57 -0800)
llvm/test/Analysis/DDG/print-dot-ddg.ll

index 8a4d55b..939fde1 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: opt -aa-pipeline=basic-aa -passes=dot-ddg -dot-ddg-filename-prefix=out.full < %s 2>&1 > /dev/null
-; RUN: FileCheck %s -input-file=out.full.foo.for.body.dot
-; RUN: opt -aa-pipeline=basic-aa -passes=dot-ddg -dot-ddg-filename-prefix=out.only -dot-ddg-only < %s 2>&1 > /dev/null
-; RUN: FileCheck %s -input-file=out.only.foo.for.body.dot -check-prefix=CHECK-ONLY
+; RUN: opt -aa-pipeline=basic-aa -passes=dot-ddg -dot-ddg-filename-prefix=%t < %s 2>&1 > /dev/null
+; RUN: FileCheck %s -input-file=%t.foo.for.body.dot
+; RUN: opt -aa-pipeline=basic-aa -passes=dot-ddg -dot-ddg-filename-prefix=%t -dot-ddg-only < %s 2>&1 > /dev/null
+; RUN: FileCheck %s -input-file=%t.foo.for.body.dot -check-prefix=CHECK-ONLY
 
 target datalayout = "e-m:e-i64:64-n32:64-v256:256:256-v512:512:512"