From: Vedant Kumar Date: Wed, 16 May 2018 17:30:58 +0000 (+0000) Subject: [Debugify] Tighten up the test for -debugify-each, NFC X-Git-Tag: llvmorg-7.0.0-rc1~5855 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c6b3fb8fbe414bb930fbdf00dde70510fcef488;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 332497 --- diff --git a/llvm/test/DebugInfo/debugify-each.ll b/llvm/test/DebugInfo/debugify-each.ll index 85e352f..09af37f 100644 --- a/llvm/test/DebugInfo/debugify-each.ll +++ b/llvm/test/DebugInfo/debugify-each.ll @@ -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 +; MODULE-PASS: CheckModuleDebugify [{{.*}}] +; MODULE-PASS: CheckModuleDebugify [{{.*}}] -; CHECK-DAG: CheckModuleDebugify [{{.*}}]: PASS -; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS -; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS -; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS -; CHECK-DAG: CheckFunctionDebugify [{{.*}}]: PASS +; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}] +; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}] +; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}] +; FUNCTION-PASS: CheckFunctionDebugify [{{.*}}]