]> granicus.if.org Git - clang/commit
Pass -fprofile-sample-use to lto backends.
authorDehao Chen <dehao@google.com>
Fri, 13 Jan 2017 00:51:55 +0000 (00:51 +0000)
committerDehao Chen <dehao@google.com>
Fri, 13 Jan 2017 00:51:55 +0000 (00:51 +0000)
commit4a54b1e3abdeb0ddb914c6f22e040f1c422a32a9
tree2a37b11ed01460575dee1f8ceb1e41d51b295a32
parent85570ac22c7c3bbbf5ff871f0bef822133bf111c
Pass -fprofile-sample-use to lto backends.

Summary: LTO backend will not invoke SampleProfileLoader pass even if -fprofile-sample-use is specified. This patch passes the flag down so that pass manager can add the SampleProfileLoader pass correctly.

Reviewers: mehdi_amini, tejohnson

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291870 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/thinlto_backend.ll