[llvm-branch-commits] [clang] 754d1d3 - [test] Fix Misc/time-passes.c
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 9 17:22:14 PST 2020
Author: Fangrui Song
Date: 2020-12-09T17:17:28-08:00
New Revision: 754d1d3d52b7145acc9fd440e8ecc0c10d9e966d
URL: https://github.com/llvm/llvm-project/commit/754d1d3d52b7145acc9fd440e8ecc0c10d9e966d
DIFF: https://github.com/llvm/llvm-project/commit/754d1d3d52b7145acc9fd440e8ecc0c10d9e966d.diff
LOG: [test] Fix Misc/time-passes.c
Added:
Modified:
clang/test/Misc/time-passes.c
Removed:
################################################################################
diff --git a/clang/test/Misc/time-passes.c b/clang/test/Misc/time-passes.c
index 7347cf5a0477..c476bccaea43 100644
--- a/clang/test/Misc/time-passes.c
+++ b/clang/test/Misc/time-passes.c
@@ -1,22 +1,22 @@
// Check that legacy pass manager could only use -ftime-report
-// RUN: %clang_cc1 -fno-experimental-new-pass-manager -emit-obj -O1 \
+// RUN: %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
// RUN: -ftime-report %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=TIME,LPM
-// RUN: not %clang_cc1 -fno-experimental-new-pass-manager -emit-obj -O1 \
+// RUN: not %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
// RUN: -ftime-report=per-pass %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=ERROR
-// RUN: not %clang_cc1 -fno-experimental-new-pass-manager -emit-obj -O1 \
+// RUN: not %clang_cc1 -flegacy-pass-manager -emit-obj -O1 \
// RUN: -ftime-report=per-pass-run %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=ERROR
// Check -ftime-report/-ftime-report= output for the new pass manager
-// RUN: %clang_cc1 -emit-obj -O1 -fexperimental-new-pass-manager \
+// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
// RUN: -ftime-report %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=TIME,NPM
-// RUN: %clang_cc1 -emit-obj -O1 -fexperimental-new-pass-manager \
+// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
// RUN: -ftime-report=per-pass %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=TIME,NPM
-// RUN: %clang_cc1 -emit-obj -O1 -fexperimental-new-pass-manager \
+// RUN: %clang_cc1 -emit-obj -O1 -fno-legacy-pass-manager \
// RUN: -ftime-report=per-pass-run %s -o /dev/null 2>&1 | \
// RUN: FileCheck %s --check-prefixes=TIME,NPM-PER-INVOKE
@@ -36,6 +36,6 @@
// LPM-NOT: Pass execution timing report
// NPM: Pass execution timing report
-// ERROR: error: invalid argument '-ftime-report={{.*}}' only allowed with '-fexperimental-new-pass-manager'
+// ERROR: error: invalid argument '-ftime-report={{.*}}' only allowed with '-fno-legacy-pass-manager'
int foo(int x, int y) { return x + y; }
More information about the llvm-branch-commits
mailing list