[test-suite] r266010 - Add a flag passthough for LNT diagnosis tool
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 15:51:53 PDT 2016
Author: cmatthews
Date: Mon Apr 11 17:51:53 2016
New Revision: 266010
URL: http://llvm.org/viewvc/llvm-project?rev=266010&view=rev
Log:
Add a flag passthough for LNT diagnosis tool
LNT will now collected details about a run to help triage and diagnose
performance problems. LNT needs to pass extra cflags args on top of the
normal flags to do this.
Modified:
test-suite/trunk/CMakeLists.txt
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=266010&r1=266009&r2=266010&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Mon Apr 11 17:51:53 2016
@@ -99,6 +99,13 @@ endif()
set(TEST_SUITE_PROFILE_USE "FALSE" CACHE BOOL
"Add apropriate -fprofile-instr-use to CFLAGS/CXXFLAGS for each benchmark")
+# When running the test-suite in diagnosis mode, use these flags passed by
+# LNT to gather data, for examples -ftime-report, or -llvm -stats.
+if(TEST_SUITE_DIAGNOSE)
+ list(APPEND CFLAGS ${TEST_SUITE_DIAGNOSE_FLAGS})
+ list(APPEND CXXFLAGS ${TEST_SUITE_DIAGNOSE_FLAGS})
+endif()
+
include(MakefileFunctions)
include(SingleMultiSource)
find_package(TCL)
More information about the llvm-commits
mailing list