summaryrefslogtreecommitdiff
path: root/lib/Target/TargetRegisterInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-01 00:18:52 +0000
committerOwen Anderson <resistor@mac.com>2008-07-01 00:18:52 +0000
commitf4f9c4f1cf4d497c63e40e6c7ef545c8c716a5ce (patch)
tree1c9a5e746bc3000736c4c823b335df90c8597ccb /lib/Target/TargetRegisterInfo.cpp
parent528bc028774513ee76125f85ceb8f704f5901cc8 (diff)
downloadllvm-f4f9c4f1cf4d497c63e40e6c7ef545c8c716a5ce.tar.gz
llvm-f4f9c4f1cf4d497c63e40e6c7ef545c8c716a5ce.tar.bz2
llvm-f4f9c4f1cf4d497c63e40e6c7ef545c8c716a5ce.tar.xz
Replace the dynamically computed std::set lookup method for subregisters with a hashtable-based
version that is computed by tblgen at the time LLVM is compiled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetRegisterInfo.cpp')
-rw-r--r--lib/Target/TargetRegisterInfo.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/TargetRegisterInfo.cpp b/lib/Target/TargetRegisterInfo.cpp
index e69496f4b2..3f44a0cb5a 100644
--- a/lib/Target/TargetRegisterInfo.cpp
+++ b/lib/Target/TargetRegisterInfo.cpp
@@ -29,16 +29,6 @@ TargetRegisterInfo::TargetRegisterInfo(const TargetRegisterDesc *D, unsigned NR,
CallFrameSetupOpcode = CFSO;
CallFrameDestroyOpcode = CFDO;
-
- for (unsigned i = 0; i < NumRegs; ++i) {
- const TargetRegisterDesc* CurrReg = Desc + i;
-
- // Initialize the Subregs set, which stores pairs (a, b) where
- // b is a subreg of a.
- if (CurrReg->SubRegs)
- for (const unsigned* CurrSR = CurrReg->SubRegs; *CurrSR; ++CurrSR)
- Subregs.insert(std::make_pair(i, *CurrSR));
- }
}
TargetRegisterInfo::~TargetRegisterInfo() {}