Now using a variant of the existing inlining heuristics to decide whether to create...
authorKenneth Uildriks <kennethuil@gmail.com>
Sat, 9 Oct 2010 22:06:36 +0000 (22:06 +0000)
committerKenneth Uildriks <kennethuil@gmail.com>
Sat, 9 Oct 2010 22:06:36 +0000 (22:06 +0000)
commit74fa7327d690e6ceda6ce77e4e5b8ef75cb12538
tree7ccda8d95ec34025c4695626a629f0a0d6ff2e25
parentea1fe2c0a79e7984da5d4fbd538a0bdb2cd1d149
Now using a variant of the existing inlining heuristics to decide whether to create a given specialization of a function in PartialSpecialization.  If the total performance bonus across all callsites passing the same constant exceeds the specialization cost, we create the specialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116158 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InlineCost.h
lib/Analysis/InlineCost.cpp
lib/Transforms/IPO/PartialSpecialization.cpp
test/Transforms/PartialSpecialize/heuristics.ll [new file with mode: 0644]