Refactor inline costs analysis by removing the InlineCostAnalysis class
authorEaswaran Raman <eraman@google.com>
Mon, 28 Dec 2015 20:28:19 +0000 (20:28 +0000)
committerEaswaran Raman <eraman@google.com>
Mon, 28 Dec 2015 20:28:19 +0000 (20:28 +0000)
commit0651a407f6a408caa02b76a1cdaf0d8fa54f29fb
treed613ad80fce89326b2999d8fc9268fb054db6634
parent912373de69045e491d6a301611ce31a2914a7d43
Refactor inline costs analysis by removing the InlineCostAnalysis class

InlineCostAnalysis is an analysis pass without any need for it to be one.
Once it stops being an analysis pass, it doesn't maintain any useful state
and the member functions inside can be made free functions. NFC.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256521 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InlineCost.h
include/llvm/Transforms/IPO/InlinerPass.h
lib/Analysis/InlineCost.cpp
lib/Transforms/IPO/InlineAlways.cpp
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/IPO/Inliner.cpp