diff options
author | Dehao Chen <dehao@google.com> | 2016-12-14 22:06:49 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2016-12-14 22:06:49 +0000 |
commit | 40dd8c510955de5bad344e3b31a325eb8481e292 (patch) | |
tree | 42854b630575598998e3ba51bf0b9fe1d2c5d32d /llvm/test/Transforms/SampleProfile/summary.ll | |
parent | fb699619a0530632028a63ea4f04a6b979712429 (diff) | |
download | bcm5719-llvm-40dd8c510955de5bad344e3b31a325eb8481e292.tar.gz bcm5719-llvm-40dd8c510955de5bad344e3b31a325eb8481e292.zip |
Only sets profile summary when it was not preset.
Summary: SampleProfileLoader pass may be invoked twice by LTO. The 2nd pass should not append more summary info as it is already preset by the 1st pass.
Reviewers: eraman, davidxl
Subscribers: mehdi_amini, llvm-commits
Differential Revision: https://reviews.llvm.org/D27733
llvm-svn: 289725
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/summary.ll')
-rw-r--r-- | llvm/test/Transforms/SampleProfile/summary.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SampleProfile/summary.ll b/llvm/test/Transforms/SampleProfile/summary.ll index 49b1d2c3633..0a3d1a27648 100644 --- a/llvm/test/Transforms/SampleProfile/summary.ll +++ b/llvm/test/Transforms/SampleProfile/summary.ll @@ -1,5 +1,6 @@ ; Test that we annotate entire program's summary to IR. ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | FileCheck %s +; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | opt -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | FileCheck %s define i32 @bar() #0 !dbg !1 { entry: |