summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-22 21:17:55 +0000
committerChris Lattner <sabre@nondot.org>2010-07-22 21:17:55 +0000
commit134d8eec8789184c7a7290ee101ca3d6f62f384a (patch)
tree4c53ddff97a5c807ed5732a469c6885fad7e64eb /lib/CodeGen/TargetInstrInfoImpl.cpp
parent1c55386dae428d076bd7d054ed8bbb59c4ba954e (diff)
downloadllvm-134d8eec8789184c7a7290ee101ca3d6f62f384a.tar.gz
llvm-134d8eec8789184c7a7290ee101ca3d6f62f384a.tar.bz2
llvm-134d8eec8789184c7a7290ee101ca3d6f62f384a.tar.xz
remove the JIT "NeedsExactSize" feature and supporting logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
-rw-r--r--lib/CodeGen/TargetInstrInfoImpl.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/CodeGen/TargetInstrInfoImpl.cpp b/lib/CodeGen/TargetInstrInfoImpl.cpp
index cdacb98e0e..6e4a0d837e 100644
--- a/lib/CodeGen/TargetInstrInfoImpl.cpp
+++ b/lib/CodeGen/TargetInstrInfoImpl.cpp
@@ -178,19 +178,6 @@ MachineInstr *TargetInstrInfoImpl::duplicate(MachineInstr *Orig,
return MF.CloneMachineInstr(Orig);
}
-unsigned
-TargetInstrInfoImpl::GetFunctionSizeInBytes(const MachineFunction &MF) const {
- unsigned FnSize = 0;
- for (MachineFunction::const_iterator MBBI = MF.begin(), E = MF.end();
- MBBI != E; ++MBBI) {
- const MachineBasicBlock &MBB = *MBBI;
- for (MachineBasicBlock::const_iterator I = MBB.begin(),E = MBB.end();
- I != E; ++I)
- FnSize += GetInstSizeInBytes(I);
- }
- return FnSize;
-}
-
// If the COPY instruction in MI can be folded to a stack operation, return
// the register class to use.
static const TargetRegisterClass *canFoldCopy(const MachineInstr *MI,