Do not merge jump tables this early. Branch folding will do any necessary

merges, and until then, it's useful to keep the tables separate for ease
of manipulation.

llvm-svn: 88806
This commit is contained in:
Jim Grosbach
2009-11-14 20:15:03 +00:00
parent 43d2108546
commit ae84426ed8

View File

@@ -530,10 +530,6 @@ void MachineFrameInfo::dump(const MachineFunction &MF) const {
unsigned MachineJumpTableInfo::getJumpTableIndex(
const std::vector<MachineBasicBlock*> &DestBBs) {
assert(!DestBBs.empty() && "Cannot create an empty jump table!");
for (unsigned i = 0, e = JumpTables.size(); i != e; ++i)
if (JumpTables[i].MBBs == DestBBs)
return i;
JumpTables.push_back(MachineJumpTableEntry(DestBBs));
return JumpTables.size()-1;
}