diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-21 11:55:09 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-21 11:55:09 +0000 |
commit | 8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37 (patch) | |
tree | a6e0f902bace0a43e5d9f7dc89ecbc9275d32f3b /include/llvm/Analysis | |
parent | 86953b5795007eaa98838297360a6987e33e92e7 (diff) | |
download | external_llvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.zip external_llvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.tar.gz external_llvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.tar.bz2 |
Now that the inline cost analysis is a pass, we can easily have it
depend on and use other analyses (as long as they're either immutable
passes or CGSCC passes of course -- nothing in the pass manager has been
fixed here). Leverage this to thread TargetTransformInfo down through
the inline cost analysis.
No functionality changed here, this just threads things through.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index 3d81529..bc7924e 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -23,6 +23,7 @@ namespace llvm { class CallSite; class DataLayout; class Function; +class TargetTransformInfo; namespace InlineConstants { // Various magic constants used to adjust heuristics. @@ -100,6 +101,7 @@ public: /// \brief Cost analyzer used by inliner. class InlineCostAnalysis : public CallGraphSCCPass { const DataLayout *TD; + const TargetTransformInfo *TTI; public: static char ID; |