]> granicus.if.org Git - clang/commit
Pass -fprofile-sample-use to lto backends.
authorDehao Chen <dehao@google.com>
Thu, 12 Jan 2017 16:29:25 +0000 (16:29 +0000)
committerDehao Chen <dehao@google.com>
Thu, 12 Jan 2017 16:29:25 +0000 (16:29 +0000)
commitae4063670e472cfc4be099eb9d2f6f5e6b02f5e5
tree6e5614454d0e4d9473f12a81700b11f1c79d064c
parent4d6ad36d4c92567d62c253b11794d26b412a6364
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@291774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/thinlto_backend.ll