[PATCH] D45558: [test-suite] Save stats for LTO step too.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 08:08:51 PDT 2018
fhahn updated this revision to Diff 142942.
fhahn added a subscriber: tejohnson.
fhahn added a comment.
Thanks for having a look! After @tejohnson 's feedback, I've updated the llvm patch and added a clang patch that adds support for -save-stats with LTO to the clang driver.
https://reviews.llvm.org/D45558
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -194,6 +194,11 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45558.142942.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180418/18fd6844/attachment.bin>
More information about the llvm-commits
mailing list