aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CodeMetrics.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-21 11:39:18 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-21 11:39:18 +0000
commit4319e2948d477595a85e6b5c8d4eb4cdfde7330d (patch)
treea18943deaddc9d7e538ad229b9ad273ff8d06836 /llvm/lib/Analysis/CodeMetrics.cpp
parent7e88e744479ebd8121741460bfbac2e541756d1c (diff)
downloadllvm-4319e2948d477595a85e6b5c8d4eb4cdfde7330d.zip
llvm-4319e2948d477595a85e6b5c8d4eb4cdfde7330d.tar.gz
llvm-4319e2948d477595a85e6b5c8d4eb4cdfde7330d.tar.bz2
Make the inline cost a proper analysis pass. This remains essentially
a dynamic analysis done on each call to the routine. However, now it can use the standard pass infrastructure to reference other analyses, instead of a silly setter method. This will become more interesting as I teach it about more analysis passes. This updates the two inliner passes to use the inline cost analysis. Doing so highlights how utterly redundant these two passes are. Either we should find a cheaper way to do always inlining, or we should merge the two and just fiddle with the thresholds to get the desired behavior. I'm leaning increasingly toward the latter as it would also remove the Inliner sub-class split. llvm-svn: 173030
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions