diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-01 00:01:06 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-01 00:01:06 +0000 |
| commit | 25c1653700d94cd5cbb0bce47ee6687f6379750b (patch) | |
| tree | 6973e9abe70fd3e21f94b00448a5054638d58250 /llvm/lib/Target/Alpha/AlphaISelLowering.cpp | |
| parent | 66ba55a95a6615ce1653dd5940391f3f31da85ce (diff) | |
| download | bcm5719-llvm-25c1653700d94cd5cbb0bce47ee6687f6379750b.tar.gz bcm5719-llvm-25c1653700d94cd5cbb0bce47ee6687f6379750b.zip | |
Get rid of the EdgeMapping map. Instead, just check for BasicBlock
changes before doing phi lowering for switches.
llvm-svn: 102809
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index ec845d0a08a..1d85f12c3ef 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -832,8 +832,7 @@ getRegClassForInlineAsmConstraint(const std::string &Constraint, MachineBasicBlock * AlphaTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI, - MachineBasicBlock *BB, - DenseMap<MachineBasicBlock*, MachineBasicBlock*> *EM) const { + MachineBasicBlock *BB) const { const TargetInstrInfo *TII = getTargetMachine().getInstrInfo(); assert((MI->getOpcode() == Alpha::CAS32 || MI->getOpcode() == Alpha::CAS64 || @@ -864,11 +863,6 @@ AlphaTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *llscMBB = F->CreateMachineBasicBlock(LLVM_BB); MachineBasicBlock *sinkMBB = F->CreateMachineBasicBlock(LLVM_BB); - // Inform sdisel of the edge changes. - for (MachineBasicBlock::succ_iterator I = BB->succ_begin(), - E = BB->succ_end(); I != E; ++I) - EM->insert(std::make_pair(*I, sinkMBB)); - sinkMBB->transferSuccessors(thisMBB); F->insert(It, llscMBB); |

