Set function entry count as 0 if sample profile is not found for the function.
authorDehao Chen <dehao@google.com>
Mon, 22 Feb 2016 22:46:21 +0000 (22:46 +0000)
committerDehao Chen <dehao@google.com>
Mon, 22 Feb 2016 22:46:21 +0000 (22:46 +0000)
commit6c73b49911e29dc89d40dd95e5548d2359d53414
tree1e413ebe4674435571fe8a822b9b0c202b5ba748
parent3a7def09fece8d6a403f5002dd4811704fa2b3c4
Set function entry count as 0 if sample profile is not found for the function.

Summary: This change makes the sample profile's behavior consistent with instr profile.

Reviewers: davidxl, eraman, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D17522

llvm-svn: 261587
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/test/Transforms/SampleProfile/entry_counts.ll