]> granicus.if.org Git - clang/commit
Expose -mllvm -accurate-sample-profile to clang.
authorDehao Chen <dehao@google.com>
Thu, 24 Aug 2017 21:37:33 +0000 (21:37 +0000)
committerDehao Chen <dehao@google.com>
Thu, 24 Aug 2017 21:37:33 +0000 (21:37 +0000)
commit9619ec9a5eb42ebc8f71c933a919df08dfd90f86
treea7680df770d84e12a03a54cb4c907d72bc0b3e3c
parent9448f422a1cf7f06fc904bc2d74dbbed5bfe6972
Expose -mllvm -accurate-sample-profile to clang.

Summary: With accurate sample profile, we can do more aggressive size optimization. For some size-critical application, this can reduce the text size by 20%

Reviewers: davidxl, rsmith

Reviewed By: davidxl, rsmith

Subscribers: mehdi_amini, eraman, sanjoy, cfe-commits

Differential Revision: https://reviews.llvm.org/D37091

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311707 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CodeGenFunction.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/profile-sample-accurate.c [new file with mode: 0644]
test/Driver/clang_f_opts.c
test/Integration/thinlto_profile_sample_accurate.c [new file with mode: 0644]