[SampleFDO] Treat names in profile as not cold only when profile symbol list
authorWei Mi <wmi@google.com>
Mon, 23 Sep 2019 22:11:35 +0000 (22:11 +0000)
committerWei Mi <wmi@google.com>
Mon, 23 Sep 2019 22:11:35 +0000 (22:11 +0000)
commit22fd88530b11af92e1c2658c755d3915538a844d
tree4ac6500419878ada1ffd254d8c369d7b57da616e
parent28b38c277a2941e9e891b2db30652cfd962f070b
[SampleFDO] Treat names in profile as not cold only when profile symbol list
is available

In rL372232, we treated names showing up in profile as not cold when
profile-sample-accurate is enabled. This caused 70k size regression in
Chrome/Android. The patch put a guard and only enable the change when
profile symbol list is available, i.e., keep the old behavior when profile
symbol list is not available.

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

llvm-svn: 372665
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/test/Transforms/SampleProfile/profile-sample-accurate.ll