[llvm] r332497 - [Debugify] Tighten up the test for -debugify-each, NFC

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 10:30:58 PDT 2018


Author: vedantk
Date: Wed May 16 10:30:58 2018
New Revision: 332497

URL: http://llvm.org/viewvc/llvm-project?rev=332497&view=rev
Log:
[Debugify] Tighten up the test for -debugify-each, NFC

In post-commit review for r332416, Paul Robinson pointed out that the
test for -debugify-each is not checking what it needs to.

This commit tightens up the test.

Modified:
    llvm/trunk/test/DebugInfo/debugify-each.ll

Modified: llvm/trunk/test/DebugInfo/debugify-each.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/debugify-each.ll?rev=332497&r1=332496&r2=332497&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/debugify-each.ll (original)
+++ llvm/trunk/test/DebugInfo/debugify-each.ll Wed May 16 10:30:58 2018
@@ -1,5 +1,14 @@
-; RUN: opt -debugify-each -O3 -S -o - < %s | FileCheck %s
-; RUN: opt -debugify-each -instrprof -sroa -sccp -S -o - < %s | FileCheck %s
+; RUN: opt -debugify-each -O3 -S -o /dev/null < %s > %t
+; RUN: FileCheck %s -input-file=%t -check-prefix=MODULE-PASS
+; RUN: FileCheck %s -input-file=%t -check-prefix=FUNCTION-PASS
+
+; RUN: opt -enable-debugify -debugify-each -O3 -S -o /dev/null < %s > %t
+; RUN: FileCheck %s -input-file=%t -check-prefix=MODULE-PASS
+; RUN: FileCheck %s -input-file=%t -check-prefix=FUNCTION-PASS
+
+; RUN: opt -debugify-each -instrprof -instrprof -sroa -sccp -S -o /dev/null < %s > %t
+; RUN: FileCheck %s -input-file=%t -check-prefix=MODULE-PASS
+; RUN: FileCheck %s -input-file=%t -check-prefix=FUNCTION-PASS
 
 define void @foo() {
   ret void
@@ -11,14 +20,10 @@ define void @bar() {
 
 ; Verify that the module & function (check-)debugify passes run at least twice.
 
-; CHECK-DAG: CheckModuleDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-
-; CHECK-DAG: CheckModuleDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
-; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS
+; MODULE-PASS: CheckModuleDebugify [{{.*}}]
+; MODULE-PASS: CheckModuleDebugify [{{.*}}]
+
+; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}]
+; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}]
+; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}]
+; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}]




More information about the llvm-commits mailing list