mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00a6a1f022
commit
c04cae9c9b
@ -530,10 +530,6 @@ void MachineFrameInfo::dump(const MachineFunction &MF) const {
|
|||||||
unsigned MachineJumpTableInfo::getJumpTableIndex(
|
unsigned MachineJumpTableInfo::getJumpTableIndex(
|
||||||
const std::vector<MachineBasicBlock*> &DestBBs) {
|
const std::vector<MachineBasicBlock*> &DestBBs) {
|
||||||
assert(!DestBBs.empty() && "Cannot create an empty jump table!");
|
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));
|
JumpTables.push_back(MachineJumpTableEntry(DestBBs));
|
||||||
return JumpTables.size()-1;
|
return JumpTables.size()-1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user