aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-21 00:44:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-21 00:44:22 +0000
commit30fdb5c2ac35b8af818ee62bfd184357f20eca34 (patch)
tree7e4cd0530439b2753db791ee5203a2accb8ac5f8 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parentd217cfcf468712780cb3b06a36e0ce53897592c1 (diff)
downloadexternal_llvm-30fdb5c2ac35b8af818ee62bfd184357f20eca34.zip
external_llvm-30fdb5c2ac35b8af818ee62bfd184357f20eca34.tar.gz
external_llvm-30fdb5c2ac35b8af818ee62bfd184357f20eca34.tar.bz2
- Clean up some crappy code which deals with coalescing of copies which look at
extract_subreg / insert_subreg, etc. - Add support for more aggressive insert_subreg coalescing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index 8ddcac7..351217c 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -111,6 +111,12 @@ namespace llvm {
double getScaledIntervalSize(LiveInterval& I) {
return (1000.0 * I.getSize()) / indexes_->getIndexesLength();
}
+
+ /// getFuncInstructionCount - Return the number of instructions in the
+ /// current function.
+ unsigned getFuncInstructionCount() {
+ return indexes_->getFunctionSize();
+ }
/// getApproximateInstructionCount - computes an estimate of the number
/// of instructions in a given LiveInterval.