[test-suite] r330836 - [test-suite] Save stats for LTO step too.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 08:43:10 PDT 2018
Author: fhahn
Date: Wed Apr 25 08:43:09 2018
New Revision: 330836
URL: http://llvm.org/viewvc/llvm-project?rev=330836&view=rev
Log:
[test-suite] Save stats for LTO step too.
Currently we do not generate stats for the LTO step. This change
together with D45531 allows us to gather stats for the LTO step too.
Reviewers: MatzeB, rengolin, kristof.beyls
Reviewed By: rengolin
Differential Revision: https://reviews.llvm.org/D45558
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=330836&r1=330835&r2=330836&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Wed Apr 25 08:43:09 2018
@@ -194,6 +194,11 @@ option(TEST_SUITE_COLLECT_STATS "Collect
if(TEST_SUITE_COLLECT_STATS)
list(APPEND CFLAGS -save-stats=obj)
list(APPEND CXXFLAGS -save-stats=obj)
+ # Collect stats for LTO step too.
+ if (${CMAKE_C_FLAGS} MATCHES ".*-flto.*" AND
+ ${CMAKE_CXX_FLAGS} MATCHES ".*-flto.*")
+ list(APPEND LDFLAGS -save-stats=obj)
+ endif()
endif()
# Detect and include subdirectories
More information about the llvm-commits
mailing list