summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/X86.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-11-06 19:52:49 +0000
committerDehao Chen <dehao@google.com>2017-11-06 19:52:49 +0000
commit5d2a1a5045ce51eb3c5fe70c29e1c0d996176cfb (patch)
treea462cfa0fe88436dfd147c5019bcaf98324994d1 /clang/lib/Basic/Targets/X86.cpp
parent972d513a5ce836a11b6575acd9436404f4dfbb22 (diff)
downloadbcm5719-llvm-5d2a1a5045ce51eb3c5fe70c29e1c0d996176cfb.tar.gz
bcm5719-llvm-5d2a1a5045ce51eb3c5fe70c29e1c0d996176cfb.zip
Include already promoted counts when computing SUM for VP.
Summary: When computing the SUM for indirect call promotion, if the callsite is already promoted in the profile, it will be promoted before ICP. In the current implementation, ICP only sees remaining counts in SUM. This may cause extra indirect call targets being promoted. This patch updates the SUM to include the counts already promoted earlier. This way we do not end up promoting too many indirect call targets. Reviewers: tejohnson Reviewed By: tejohnson Subscribers: llvm-commits, sanjoy Differential Revision: https://reviews.llvm.org/D38763 llvm-svn: 317502
Diffstat (limited to 'clang/lib/Basic/Targets/X86.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud