From 0fc5f58b28dd79ca7d2d83c07d6c9282e45cf7ba Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Mon, 24 Feb 2020 12:17:55 +0100 Subject: [PATCH] Use temporary directory for tests in D74346 --- test/Other/cfg_deopt_unreach.ll | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test/Other/cfg_deopt_unreach.ll b/test/Other/cfg_deopt_unreach.ll index 25fae44ed25..72f23b58bc0 100644 --- a/test/Other/cfg_deopt_unreach.ll +++ b/test/Other/cfg_deopt_unreach.ll @@ -1,11 +1,13 @@ -; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=unreach 2>/dev/null -; RUN: FileCheck %s -input-file=unreach.callee.dot -check-prefix=UNREACH -; RUN: opt < %s -analyze -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=deopt 2>/dev/null -; RUN: FileCheck %s -input-file=deopt.callee.dot -check-prefix=DEOPT -; RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=no-flags 2>/dev/null -; RUN: FileCheck %s -input-file=no-flags.callee.dot -check-prefix=NO-FLAGS -; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=both-flags 2>/dev/null -; RUN: FileCheck %s -input-file=both-flags.callee.dot -check-prefix=BOTH-FLAGS +; RUN: rm -rf %t +; RUN: mkdir -p %t +; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=%t/unreach 2>/dev/null +; RUN: FileCheck %s -input-file=%t/unreach.callee.dot -check-prefix=UNREACH +; RUN: opt < %s -analyze -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/deopt 2>/dev/null +; RUN: FileCheck %s -input-file=%t/deopt.callee.dot -check-prefix=DEOPT +; RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=%t/no-flags 2>/dev/null +; RUN: FileCheck %s -input-file=%t/no-flags.callee.dot -check-prefix=NO-FLAGS +; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null +; RUN: FileCheck %s -input-file=%t/both-flags.callee.dot -check-prefix=BOTH-FLAGS declare i8 @llvm.experimental.deoptimize.i8(...)